summaryrefslogtreecommitdiffstats
path: root/Tools/ssl
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-05-16 21:50:29 (GMT)
committerGitHub <noreply@github.com>2018-05-16 21:50:29 (GMT)
commite5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3 (patch)
tree08165b95d947b31d76f1dcf8fb261a167becd181 /Tools/ssl
parent713a9367366c88662c39ed20dd6bce22399299f1 (diff)
downloadcpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.zip
cpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.tar.gz
cpython-e5f41d2f1e0b8b8e61d5fa427c19bd1ea90fd9a3.tar.bz2
bpo-33522: Enable CI builds on Visual Studio Team Services (#6865)
Diffstat (limited to 'Tools/ssl')
-rwxr-xr-xTools/ssl/multissltests.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/Tools/ssl/multissltests.py b/Tools/ssl/multissltests.py
index a51566c..2efc425 100755
--- a/Tools/ssl/multissltests.py
+++ b/Tools/ssl/multissltests.py
@@ -125,6 +125,11 @@ parser.add_argument(
"all and runs the test suite."
)
)
+parser.add_argument(
+ '--system',
+ default='',
+ help="Override the automatic system type detection."
+)
class AbstractBuilder(object):
@@ -152,6 +157,7 @@ class AbstractBuilder(object):
# build directory (removed after install)
self.build_dir = os.path.join(
self.src_dir, self.build_template.format(version))
+ self.system = args.system
def __str__(self):
return "<{0.__class__.__name__} for {0.version}>".format(self)
@@ -255,9 +261,13 @@ class AbstractBuilder(object):
log.info("Running build in {}".format(self.build_dir))
cwd = self.build_dir
cmd = ["./config", "shared", "--prefix={}".format(self.install_dir)]
- self._subprocess_call(cmd, cwd=cwd)
+ env = None
+ if self.system:
+ env = os.environ.copy()
+ env['SYSTEM'] = self.system
+ self._subprocess_call(cmd, cwd=cwd, env=env)
# Old OpenSSL versions do not support parallel builds.
- self._subprocess_call(["make", "-j1"], cwd=cwd)
+ self._subprocess_call(["make", "-j1"], cwd=cwd, env=env)
def _make_install(self, remove=True):
self._subprocess_call(