Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache macos python installation pkg when possible #2081

Open
trim21 opened this issue Nov 13, 2024 · 1 comment · May be fixed by #2108
Open

cache macos python installation pkg when possible #2081

trim21 opened this issue Nov 13, 2024 · 1 comment · May be fixed by #2108

Comments

@trim21
Copy link

trim21 commented Nov 13, 2024

Description

I'm running cibuildwheel==2.21.3 under macos and windows, I find python on windows is located at C:\Users\runneradmin\AppData\Local\pypa\cibuildwheel\Cache which is inside cibuildwheel cache dir, so it takes 0.00s to install.

But in macos, some python get download every times, for example, cp310 and cp313t take about 40s.

hoping macos python get cached too

Build log

https://github.com/trim21/bencode-py/actions/runs/11825663392/job/32949967762?pr=116

CI config

No response

@trim21 trim21 changed the title cache macos 13 pkg when possible cache macos python installation pkg when possible Nov 13, 2024
@trim21 trim21 linked a pull request Dec 7, 2024 that will close this issue
@mayeut
Copy link
Member

mayeut commented Dec 8, 2024

macOS uses official python.org installers that requires proper installation in /Library/Frameworks/Python.framework or /Library/Frameworks/PythonT.framework.
It's a 2 steps setup:

  • first: download the installer
  • second: install CPython

We can't cache the proper installation thus only the download step could be cached which is probably not worth doing.
https://github.com/mayeut/cibuildwheel/actions/runs/12221740312/usage shows only a small timing noise when installers are cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants