-
Notifications
You must be signed in to change notification settings - Fork 444
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
pipx doesn't respect manually selected point releases on upgrade
#802
Comments
Currently Maybe we can introduce a new option (probably |
Do we save the original user request in metadata? (I don’t quite remember) If we do, we should make |
pipx/src/pipx/package_specifier.py Lines 176 to 188 in 71fe102
EDIT: Or we should simply introduce |
I would really love to have any solution for that issue - I used to run |
Hah, it seems I can help myself here - there's some workaround: Anyway, I believe |
Maybe #891 can help with this case. Run (But I am still implementing |
@dukecat0 what's the status of that? 😉 |
Hi @jaklan, I've implemented the logic of it before, but seems like the changes were dismissed accidentally, so I will try to work on it again. |
Great to hear, that would be a huge improvement! Btw, for |
IIRC I used this approach in my previous implementation. |
PR weclome. |
Describe the bug
In the following example, the system's headers and library of gdal are in v3.2.2. Latest gdal is on v3.3.2, so is pygdal looking for this version, can't find it and breaks. Even when installed with
pygdal==3.2.2.*
, pipx upgrade doesn't respect this limitation and the upgrade fails, since the installer can't find latest gdal:How to reproduce
It gets worse when pygdal has been injected into another package. This completely fails then:
Expected behavior
Read
package_or_url
from pipx_metadata.json and limit it to the version stated in there.Workarounds
~/.local/pipx/venvs/pygdal/pipx_metadata.json
The text was updated successfully, but these errors were encountered: