Skip to content

Commit

Permalink
Work around GraalPy virtualenv bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Jul 21, 2024
1 parent 23e8f52 commit 69760d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def install_graalpy(tmp: Path, url: str) -> Path:
# GraalPy top-folder name is inconsistent with archive name
call("tar", "-C", installation_path, "--strip-components=1", "-xzf", downloaded_archive)
downloaded_archive.unlink()
# Workaround graalpy_virtualenv bug
(installation_path / "lib-graalpython" / "modules" / "graalpy_virtualenv.egg-info" / "entry_points.txt").unlink(missing_ok=True)
return installation_path / "bin" / "graalpy"


Expand Down
2 changes: 2 additions & 0 deletions cibuildwheel/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def install_graalpy(tmp: Path, url: str) -> Path:
download(url, graalpy_zip)
# Extract to the parent directory because the zip file still contains a directory
extract_zip(graalpy_zip, installation_path.parent)
# Workaround graalpy_virtualenv bug
(installation_path / "lib-graalpython" / "modules" / "graalpy_virtualenv.egg-info" / "entry_points.txt").unlink(missing_ok=True)
return installation_path / "bin" / "graalpy.exe"


Expand Down

0 comments on commit 69760d9

Please sign in to comment.