Skip to content

Commit 357df41

Browse files
committed
Install delvewheel in gate
1 parent 5725735 commit 357df41

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,15 @@ def get_path_with_patchelf():
391391
subprocess.check_call([sys.executable, "-m", "venv", str(venv)])
392392
subprocess.check_call([str(venv / "bin" / "pip"), "install", "patchelf"])
393393
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}]")
394403
return path
395404

396405

0 commit comments

Comments
 (0)