-
Notifications
You must be signed in to change notification settings - Fork 430
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
Uninstall injected package #67
Comments
In the meantime, you can do |
The runpip command was added in 0.13 which can indirectly do this. Therefore I will close this issue since runpip is a decent workaround. |
For the record, here's how to do that with
|
I don't personally use |
👍 for uninject |
Let’s make uninject happen |
I'd like uninject. |
One caveat about Does pipx maintain a listed of injected packages in the metadata? We may be able to reconstruct the environment an clean up unneeded packages automatically as well. |
That's a good point @uranusjr . The metadata indeed contains the main package and a list of all injected packages. It does not keep track of any incidentally-installed dependencies. To find any dependencies to remove, we could
|
I suppose one risk of the above is if the user did something more "manual" like using a |
Another approach would be to make the clean-up behaviour explicit to the user, a la |
Agreed, I like this |
+1 for uninject |
What about making the default to remove dependencies of an uninjected app, but allow for the possibility to leave the dependencies alone (e.g. I like this better for the pipx use case. In fact I can't really imagine why a pipx user would want to leave the dependencies behind. It's not the same as a generic venv where the user is adding and removing random packages. In the pipx case, a user may If they did want a particular dependency of an injected package they could inject that dependency explicitly, which is the action I would expect. In which case we would leave it installed because our metadata shows it is an injected package. I'm working on a branch right now for |
Hello people.
|
Matthew is no longer able to dedicate time to pipx, so I guess his branch will not be merged. PRs are welcome from the community. |
Sometimes I want to uninstall an injected package: for instance, the latest release of tox means that detox is no longer required/supported.
Is there a way to do this?
pipx uninject tox detox
I wonder what the best name for that should be.
exclude
,expel
andwithdraw
are all cute.The text was updated successfully, but these errors were encountered: