You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PDM uses the function packaging.utils.parse_wheel_filename, which was introduced in version 20.9: https://packaging.pypa.io/en/stable/changelog.html#id5 Therefore, I believe PDM should constrain the minimum version of packaging to at least 20.9 in its requirements.
As far as who is affected by this, there's one very specific set of circumstances that I've seen:
you're running Ubuntu 20.04, or another distro on which python3-packaging is at version 20.3 at the system level,
you like to use pip3 install --user, and
you also install PDM using pip3.
In that case, pip will find the system-level version 20.3 of packaging and not install a newer version, which silently breaks PDM.
I have searched the issue tracker and believe that this is not a duplicate.
Make sure you run commands with -v flag before pasting the output.
Steps to reproduce
This repro script sort of emulates the situation outlined above using a virtualenv.
PDM uses the function
packaging.utils.parse_wheel_filename
, which was introduced in version 20.9: https://packaging.pypa.io/en/stable/changelog.html#id5 Therefore, I believe PDM should constrain the minimum version ofpackaging
to at least 20.9 in its requirements.As far as who is affected by this, there's one very specific set of circumstances that I've seen:
python3-packaging
is at version 20.3 at the system level,pip3 install --user
, andpip3
.In that case,
pip
will find the system-level version 20.3 ofpackaging
and not install a newer version, which silently breaks PDM.Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
This repro script sort of emulates the situation outlined above using a virtualenv.
Actual behavior
Expected behavior
PDM does not crash.
Environment Information
# Paste the output of `pdm info && pdm info --env` below:
(Those also fail with the same traceback.)
The text was updated successfully, but these errors were encountered: