File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,15 @@ def get_path_with_patchelf():
391
391
subprocess .check_call ([sys .executable , "-m" , "venv" , str (venv )])
392
392
subprocess .check_call ([str (venv / "bin" / "pip" ), "install" , "patchelf" ])
393
393
mx .log (f"{ time .strftime ('[%H:%M:%S] ' )} Building patchelf-venv with { sys .executable } ... [duration: { time .time () - t0 } ]" )
394
+ if mx .is_windows () and not shutil .which ("delvewheel" ):
395
+ venv = Path (SUITE .get_output_root ()).absolute () / "delvewheel-venv"
396
+ path += os .pathsep + str (venv / "Scripts" )
397
+ if not shutil .which ("delvewheel" , path = path ):
398
+ mx .log (f"{ time .strftime ('[%H:%M:%S] ' )} Building delvewheel-venv with { sys .executable } ... [delvewheel not found on PATH]" )
399
+ t0 = time .time ()
400
+ subprocess .check_call ([sys .executable , "-m" , "venv" , str (venv )])
401
+ subprocess .check_call ([str (venv / "Scripts" / "pip.exe" ), "install" , "delvewheel" ])
402
+ mx .log (f"{ time .strftime ('[%H:%M:%S] ' )} Building delvewheel-venv with { sys .executable } ... [duration: { time .time () - t0 } ]" )
394
403
return path
395
404
396
405
You can’t perform that action at this time.
0 commit comments