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

Expose a utility function to use for sysconfig/distutils paths+scheme handling like pip #145

Open
pradyunsg opened this issue Nov 9, 2022 · 3 comments
Labels
component: core Related to core installation logic type: feature A self-contained enhancement or new feature

Comments

@pradyunsg
Copy link
Member

xref: pypa/pip#11585

Basically, the idea is to mimic the logic in pip's locations subpackage, and expose that via a single function to end users.

@pradyunsg pradyunsg added the type: feature A self-contained enhancement or new feature label Nov 9, 2022
@pradyunsg pradyunsg changed the title Expose a utility function to use for sysconfi/distutils paths+scheme handling like oip Expose a utility function to use for sysconfig/distutils paths+scheme handling like oip Nov 9, 2022
@FFY00
Copy link
Member

FFY00 commented Nov 9, 2022

Does the locations subpackage do anything other than handling vendor patching?

@pradyunsg pradyunsg changed the title Expose a utility function to use for sysconfig/distutils paths+scheme handling like oip Expose a utility function to use for sysconfig/distutils paths+scheme handling like pip Nov 9, 2022
@pradyunsg
Copy link
Member Author

Yes.

See https://github.com/pypa/pip/blob/90f51db1a32592430f2e4f6fbb9efa7a3a249423/src/pip/_internal/locations/_sysconfig.py#L124 and the distutils equivalent for some of the details.

There's also logic to handle the underlying sysconfig/distutils migration, which may be worth mirroring here (depending on how complex that would be).

@pradyunsg
Copy link
Member Author

From #146, we should probably also expose this in the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core Related to core installation logic type: feature A self-contained enhancement or new feature
Projects
None yet
Development

No branches or pull requests

2 participants