Skip to content

Commit

Permalink
Update macos.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Dec 8, 2024
1 parent e58d582 commit 5eefa94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,11 @@ def install_cpython(tmp: Path, version: str, url: str, free_threading: bool) ->
"""
)
raise errors.FatalError(msg)
pkg_path = tmp / "Python.pkg"
installer_filename = url.split("/")[-1]
pkg_path = tmp / installer_filename
# download the pkg
download(url, pkg_path)
if not pkg_path.exists():
download(url, pkg_path)
# install
args = []
if version.startswith("3.13"):
Expand Down

0 comments on commit 5eefa94

Please sign in to comment.