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
pip should not install such invalid version specifiers - it should follow the specs that have been formalised. Since this would be a breaking change, I suspect we would want to raise a good exception, but have a feature flag to re-enable the existing behaviour.
Unfortunately, it is not clear to me whether that feature flag can ever be removed, as this would prohibit existing packages (e.g. flox) from being installed.
pip version
all
Python version
all
OS
all
How to Reproduce
python -m pip install flox==0.6.7
Output
It installs just fine, despite having invalid specifiers.
Description
As mentioned in https://discuss.python.org/t/pip-supporting-non-pep508-dependency-specifiers/23107,
pip
currently supports a specifier such asnumpy>='1.20'
, but this is not supported in PEP-508, nor is it supported inpackaging.requirements
.Expected behavior
pip
should not install such invalid version specifiers - it should follow the specs that have been formalised. Since this would be a breaking change, I suspect we would want to raise a good exception, but have a feature flag to re-enable the existing behaviour.Unfortunately, it is not clear to me whether that feature flag can ever be removed, as this would prohibit existing packages (e.g. flox) from being installed.
pip version
all
Python version
all
OS
all
How to Reproduce
python -m pip install flox==0.6.7
Output
It installs just fine, despite having invalid specifiers.
Code of Conduct
The text was updated successfully, but these errors were encountered: