@@ -153,8 +153,10 @@ class AbstractBuilder(object):
153
153
install_target = 'install'
154
154
jobs = os .cpu_count ()
155
155
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
+ )
158
160
module_libs = ("_ssl" , "_hashlib" )
159
161
160
162
def __init__ (self , version , args ):
@@ -357,7 +359,7 @@ def recompile_pymods(self):
357
359
env ["LD_RUN_PATH" ] = self .lib_dir
358
360
359
361
log .info ("Rebuilding Python modules" )
360
- cmd = [sys .executable , "setup.py" , "build" ]
362
+ cmd = [sys .executable , os . path . join ( PYTHONROOT , "setup.py" ) , "build" ]
361
363
self ._subprocess_call (cmd , env = env )
362
364
self .check_imports ()
363
365
@@ -372,7 +374,11 @@ def check_pyssl(self):
372
374
373
375
def run_python_tests (self , tests , network = True ):
374
376
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
+ ]
376
382
elif sys .version_info < (3 , 3 ):
377
383
cmd = [sys .executable , '-m' , 'test.regrtest' ]
378
384
else :
0 commit comments