-
Notifications
You must be signed in to change notification settings - Fork 24k
pip: Add support for various pip install modes #72097
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
base: devel
Are you sure you want to change the base?
pip: Add support for various pip install modes #72097
Conversation
The test
The test
The test
|
5f91c9d
to
6c041e5
Compare
dd4b6f2
to
4bea9bf
Compare
4bea9bf
to
9b0f96f
Compare
ready_for_review |
A number of the idempotence checks would be broken by this change, as well as potentially allowing "escape" from a virtualenv. Would also need to look into using module respawn to ensure that the idempotence checks run in the proper context. If you're still interested in moving forward with this, we can do a full review- just let us know. Thanks! |
Hey @nitzmahone - certainly happy to consider more changes, though with it being 18 months since I worked on this it will probably require quite a few updates anyway, I see some merge conflicts are showing up. In the meantime, I'd be interested to have more information on the problems you describe 😃 |
SUMMARY
Introduces support for the various 'site' locations in pip - system (default), user, target, prefix, root. Fixes #56333, potential fix for #71781
ISSUE TYPE
COMPONENT NAME
pip
ADDITIONAL INFORMATION
Currently pip can only be used to install to the 'user site' location by including extra_args, which is not a great user experience. The module also (correctly) marks any invocation with extra_args as 'changed' when in check mode. This will allow at least some tasks to be migrated away and have more accurate idempotency.
Before:
After (user):
After (prefix):