mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This solves deprecation warnings in build-script: ``` DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13 ``` This change assumes that the minimum version of Python3 is 3.3, which has `shlex.quote`. Since our build bots currently use 3.6 as their Python version, we can't yet use `shlex.join` to further simplify some of the code using quote.
22 lines
984 B
INI
22 lines
984 B
INI
import os
|
|
import shlex
|
|
|
|
|
|
if 'sourcekit' not in config.available_features:
|
|
config.unsupported = True
|
|
|
|
elif 'OS=linux-gnu' in config.available_features and 'LinuxDistribution=Ubuntu-14.04' in config.available_features:
|
|
config.unsupported = True
|
|
|
|
elif 'swift_evolve' in config.available_features:
|
|
# A lot of tests necessarily depend on standard library source order.
|
|
config.unsupported = True
|
|
|
|
else:
|
|
sk_path_sanitize = os.path.join(os.path.dirname(__file__), 'Inputs', 'sourcekitd_path_sanitize.py')
|
|
|
|
config.substitutions.append( ('%sourcekitd-test', '%s -module-cache-path %r' % (config.sourcekitd_test, config.clang_module_cache_path)) )
|
|
config.substitutions.append( ('%complete-test', '%s -module-cache-path=%r' % (config.complete_test, config.clang_module_cache_path)) )
|
|
config.substitutions.append( ('%swiftlib_dir', config.swiftlib_dir) )
|
|
config.substitutions.append( ('%sed_clean', '%s %s' % (shlex.quote(sys.executable), sk_path_sanitize) ) )
|