-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Impossible to unistall invalid package (with wrong entry point name) #2203
Comments
I was able to replicate the issue thus:
This behavior is by design and has been around for a very long time. If the package had been created by setuptools, it would not have been allowed to be built, but because it was built by Poetry, the invalid name was allowed. I recommend that Poetry disallow installation of these invalid names. Since
It's arguably an error that |
Edit: My issue is unrelated to Python2, but it doesn't looks like I can remove the label.
This issue was first posted in pypa/pip#8461 but PIP author redirected me instead. This may require change in both PIP and setuptools.
Environment
Description
I was experimenting with entry_points and released a test pip package with an invalid "entry-point" name:
epot-test
:The
pip install
failed but pip is now in a bad state. Now it is impossible for me to uninstall the corrupted package.Expected behavior
I would expect to be able to uninstall invalid packages.
How to Reproduce
Output
The only way I found was to manually found where the corrupted package was installed and remove the faulty entry point.
The text was updated successfully, but these errors were encountered: