@@ -153,8 +153,10 @@ class AbstractBuilder(object):
153153 install_target = 'install'
154154 jobs = os .cpu_count ()
155155
156- module_files = ("Modules/_ssl.c" ,
157- "Modules/_hashopenssl.c" )
156+ module_files = (
157+ os .path .join (PYTHONROOT , "Modules/_ssl.c" ),
158+ os .path .join (PYTHONROOT , "Modules/_hashopenssl.c" ),
159+ )
158160 module_libs = ("_ssl" , "_hashlib" )
159161
160162 def __init__ (self , version , args ):
@@ -357,7 +359,7 @@ def recompile_pymods(self):
357359 env ["LD_RUN_PATH" ] = self .lib_dir
358360
359361 log .info ("Rebuilding Python modules" )
360- cmd = [sys .executable , "setup.py" , "build" ]
362+ cmd = [sys .executable , os . path . join ( PYTHONROOT , "setup.py" ) , "build" ]
361363 self ._subprocess_call (cmd , env = env )
362364 self .check_imports ()
363365
@@ -372,7 +374,11 @@ def check_pyssl(self):
372374
373375 def run_python_tests (self , tests , network = True ):
374376 if not tests :
375- cmd = [sys .executable , 'Lib/test/ssltests.py' , '-j0' ]
377+ cmd = [
378+ sys .executable ,
379+ os .path .join (PYTHONROOT , 'Lib/test/ssltests.py' ),
380+ '-j0'
381+ ]
376382 elif sys .version_info < (3 , 3 ):
377383 cmd = [sys .executable , '-m' , 'test.regrtest' ]
378384 else :
0 commit comments