"+" suffix in 3.9.0+ breaks pip
Bug #1905064 reported by
Cédric Cabessa
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.9 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
python3.9 in focal is versioned as 3.9.0+
According to pip this is considered as a "LegacyVersion", which break comparison
https:/
Here is a snippet that show the "+" break comparison
```
>>> from pip._vendor.
>>> parse("3.9.0+")
<LegacyVersion(
>>> parse("3.9.0")
<Version('3.9.0')>
>>> parse("3.9.0+") >= parse("3.6.0")
False
>>> parse("3.9.0") >= parse("3.6.0")
True
>>>
```
Is it possible to mark this version as 3.9.0 ?
It seems the plus is introduced by a debian patch.
Thank you
To post a comment you must log in.
It seems this version string was introduced in a upstream Debian patch indeed, when it was based on a prerelease version of Python 3.9. The patch (git-updates.diff) was dropped later.
Introduced (erroneously): /salsa. debian. org/cpython- team/python3/ -/commit/ 5334a0144db8e35 afa8ae898d0dbd0 6afa426ccb
https:/
Removed: /salsa. debian. org/cpython- team/python3/ -/commit/ 7952d9ce65aa51d 6a23107ce1e30d0 d92b1e15c7
https:/
Please backport the updated Debian-packaged Python 3.9 to Ubuntu.