-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Make pip wheel cache what it built #7285
Make pip wheel cache what it built #7285
Conversation
e8d3b01
to
a8395f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few comments. I'm OK with the purpose of the change, especially since the old behavior is possible by adding a flag.
I this this could be cleaner if the logic was extracted into the individual calling locations, but I don't think it's worth making that approach a prereq of this functional change.
I wanted to keep the diff small, but yes, I fully agree this |
I've no clue as to why these macOS checks fail... |
Also not sure - it doesn't seem like something that would be environment-dependent or related to the current change. The set of files updated in a normal run are |
83836fb
to
30f2740
Compare
I forced a new check and it's green now. Looks like it was a transient error. |
Here is a commit with some minor refactoring of |
I would have comments on that (like minimizing the scope of the |
2a9b77a
to
978d9de
Compare
I think if you rebase on master it should fix the packaging issues - Azure Pipelines is using the pre-merge pipeline but the post-merge code which has updates from #7286 which removes |
Just like pip install.
978d9de
to
ba60397
Compare
Rebased, squashed and green. |
Many thanks! |
Do you want me to open a PR with the small refactoring mentioned in #7285 (comment) ? In truth, the more I think of it the more I think the unpacking operation seem out of place in |
👍 |
Yes, that's a great idea. Some hints after having looked at the code:
Also smaller changes are easier, if you see some couple-line refactoring that is non-controversial and would reduce the scope of your overall change don't hesitate to submit it! |
This PR make
pip wheel
behave likepip install
wrt caching of wheels it built locally.This particularly helps performance in workflows where pip wheel is used for building before installing as documented here.
Closes #6852