diff options
author | Christian Heimes <christian@python.org> | 2021-11-22 09:50:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 09:50:53 (GMT) |
commit | 512dbf6f56364d359e16988b3fd7e766edfaebf9 (patch) | |
tree | 4a9a15c2a8698e3548b7f4555a6c585b55f35d35 /Tools/ssl | |
parent | 718cee08cc082ece590f5a012253a405422da03d (diff) | |
download | cpython-512dbf6f56364d359e16988b3fd7e766edfaebf9.zip cpython-512dbf6f56364d359e16988b3fd7e766edfaebf9.tar.gz cpython-512dbf6f56364d359e16988b3fd7e766edfaebf9.tar.bz2 |
Fix out-of-tree build support for multissltest (GH-29694)
Diffstat (limited to 'Tools/ssl')
-rwxr-xr-x | Tools/ssl/multissltests.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Tools/ssl/multissltests.py b/Tools/ssl/multissltests.py index 7bdfd0b..ba2663e 100755 --- a/Tools/ssl/multissltests.py +++ b/Tools/ssl/multissltests.py @@ -153,8 +153,10 @@ class AbstractBuilder(object): install_target = 'install' jobs = os.cpu_count() - module_files = ("Modules/_ssl.c", - "Modules/_hashopenssl.c") + module_files = ( + os.path.join(PYTHONROOT, "Modules/_ssl.c"), + os.path.join(PYTHONROOT, "Modules/_hashopenssl.c"), + ) module_libs = ("_ssl", "_hashlib") def __init__(self, version, args): @@ -357,7 +359,7 @@ class AbstractBuilder(object): env["LD_RUN_PATH"] = self.lib_dir log.info("Rebuilding Python modules") - cmd = [sys.executable, "setup.py", "build"] + cmd = [sys.executable, os.path.join(PYTHONROOT, "setup.py"), "build"] self._subprocess_call(cmd, env=env) self.check_imports() @@ -372,7 +374,11 @@ class AbstractBuilder(object): def run_python_tests(self, tests, network=True): if not tests: - cmd = [sys.executable, 'Lib/test/ssltests.py', '-j0'] + cmd = [ + sys.executable, + os.path.join(PYTHONROOT, 'Lib/test/ssltests.py'), + '-j0' + ] elif sys.version_info < (3, 3): cmd = [sys.executable, '-m', 'test.regrtest'] else: |