Skip to content

Commit 69760d9

Browse files
committed
Work around GraalPy virtualenv bug
1 parent 23e8f52 commit 69760d9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cibuildwheel/macos.py

+2
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ def install_graalpy(tmp: Path, url: str) -> Path:
206206
# GraalPy top-folder name is inconsistent with archive name
207207
call("tar", "-C", installation_path, "--strip-components=1", "-xzf", downloaded_archive)
208208
downloaded_archive.unlink()
209+
# Workaround graalpy_virtualenv bug
210+
(installation_path / "lib-graalpython" / "modules" / "graalpy_virtualenv.egg-info" / "entry_points.txt").unlink(missing_ok=True)
209211
return installation_path / "bin" / "graalpy"
210212

211213

cibuildwheel/windows.py

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def install_graalpy(tmp: Path, url: str) -> Path:
149149
download(url, graalpy_zip)
150150
# Extract to the parent directory because the zip file still contains a directory
151151
extract_zip(graalpy_zip, installation_path.parent)
152+
# Workaround graalpy_virtualenv bug
153+
(installation_path / "lib-graalpython" / "modules" / "graalpy_virtualenv.egg-info" / "entry_points.txt").unlink(missing_ok=True)
152154
return installation_path / "bin" / "graalpy.exe"
153155

154156

0 commit comments

Comments
 (0)