-
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
Added a --target parameter to uninstall to allow uninstalling from custom folders #1912
Conversation
Can you explain what you exactly mean by this? Or otherwise, perhaps give specific detail of the practical use case that motivates this PR? You want to uninstall things outside a virtualenv with a pip inside a virtualenv? |
Currently there is no way to uninstall something installed via As of why this is useful: I want to use pip for plugin installations and install plugins into a local folder that only by the application is added to the pythonpath. |
@dstufft this looks like it could use some attention too. |
@pfmoore @jonparrott This looks like a good next candidate for merging, if the conflicts are resolved. |
@mitsuhiko: Want to update this? |
Accidentally closed this, reopening. Sorry! |
Hello! As part of an effort to ease the contribution process and adopt a more standard workflow pip has switched to doing development on the If you do nothing, this Pull Request will be automatically closed by @BrownTruck since it cannot be merged. If this pull request is still valid, please rebase it against If you choose to rebase/merge and resubmit this Pull Request, here is an example message that you can copy and paste:
|
@mitsuhiko, can you reparent this PR as requested? |
This Pull Request was closed because it cannot be automatically reparented to the Please feel free to re-open it or re-submit it if it is still valid and you have rebased it onto |
:-( |
Essentially what it says on the tin. It adds a --target parameter that allows pip uninstall to uninstall from a specific folder instead of the site packages.
This is necessary for pips installed into a virtualenv as otherwise the virtualenv containment check prevents a deinstallation. It also is a bit safer because it will not uninstall from outside.