Skip to content

Commit b9a84f6

Browse files
committed
fix download and extraction of graalpy on macos
1 parent 9064f0e commit b9a84f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cibuildwheel/macos.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ def install_graalpy(tmp: Path, url: str) -> Path:
169169
if not installation_path.exists():
170170
downloaded_archive = tmp / graalpy_archive
171171
download(url, downloaded_archive)
172-
installation_path.parent.mkdir(parents=True, exist_ok=True)
173-
call("tar", "-C", installation_path.parent, "-xzf", downloaded_archive)
172+
installation_path.mkdir(parents=True)
173+
# GraalPy top-folder name is inconsistent with archive name
174+
call("tar", "-C", installation_path, "--strip-components=1", "-xzf", downloaded_archive)
174175
downloaded_archive.unlink()
175176
return installation_path / "bin" / "graalpy"
176177

0 commit comments

Comments
 (0)