Skip to content

Add Scheme model and use for wheel installation #7310

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

Merged
merged 4 commits into from
Nov 9, 2019

Conversation

chrahunt
Copy link
Member

@chrahunt chrahunt commented Nov 7, 2019

We now have a Scheme model that represents our installation directories, and we use it to handle our wheel installs and de-duplicate the header install directory calculation logic.

Progresses #6052.

@chrahunt chrahunt added type: refactor Refactoring code skip news Does not need a NEWS file entry (eg: trivial changes) labels Nov 7, 2019
@chrahunt chrahunt marked this pull request as ready for review November 7, 2019 04:23
Now we have a nicely-typed interface to the calculated scheme,
and some more documentation for the same.
This was already happening in locations.distutils_scheme, we're just
reusing the existing work instead of doing it again.
Copy link
Member

@xavfernandez xavfernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 and btw it reminds me that we should really extract the wheel installation code into a PyPA library that could be used by the different installer.
I even started copying (now obsolete) code over to https://github.com/xavfernandez/cric almost 3 years ago 👴

@chrahunt
Copy link
Member Author

chrahunt commented Nov 9, 2019

Thanks both of you for reviewing! I'll merge this now, if anyone sees further issues you know where to find me. :)

@chrahunt chrahunt merged commit 7af704e into pypa:master Nov 9, 2019
@chrahunt chrahunt deleted the refactor/scheme branch November 9, 2019 01:57
@pradyunsg
Copy link
Member

Yea -- the point here is re-usability of all the build logic code once we're at a point where the "core" components of that are no longer tied to pip's internals.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Dec 9, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes) type: refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants