-
Notifications
You must be signed in to change notification settings - Fork 3.1k
--force-reinstall should probably work without needing to pass --upgrade #1139
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
Comments
I'm also quite confused with the flags force_reinstall and ignore_installed (CF pip/req.py). Actually force_reinstall seems to do the same as ignore_installed, except that it also works in the context of an upgrade. Why not get rid of force_reinstall, and simply advocate ignore_installed to force reinstallation in any case ? What are the use cases for this flag ? |
I've just had a co-worker get very confused by this. IMO |
+1, I was confused by this behavior as well. |
See more recent discussion related to this here: issue #4400. |
I submitted a PR for this here (with tests): #4432 . |
I rebased my PR for this issue: PR #4432. It has tests, etc. |
) * Add failing tests for issue #1139 re: --force-reinstall. * Address issue #1139: make --force-reinstall not require --upgrade. * Address review comments. * Address @xavfernandez's review comments. This makes the new tests not require network access.
…pypa#4432) * Add failing tests for issue pypa#1139 re: --force-reinstall. * Address issue pypa#1139: make --force-reinstall not require --upgrade. * Address review comments. * Address @xavfernandez's review comments. This makes the new tests not require network access.
It's always bugged me to need to pass
-U
here, and I don't see an open ticket for it.--force-reinstall
should force a reinstall I think, upgrade or not.The text was updated successfully, but these errors were encountered: