Make pip wheel cache what it built#7285
Conversation
e8d3b01 to
a8395f0
Compare
chrahunt
left a comment
There was a problem hiding this comment.
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 wheelbehave likepip installwrt 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