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
I would like to download all the packages listed in a requirements file using a specific python version. However, the --python-version value isn't respected by marker evaluation.
Expected behavior
I think that pip should use specific configuration --python-version, --implementation, etc when resolving environment markers.
So, when the specified requirements.txt is used with pip download ... --python-version 3.6.15, it should download idna==2.10
pip version
22.0.4
Python version
3.9.12
OS
macOS Monterey 12.3 M1
How to Reproduce
Create a requirements file with the following contents:
idna==2.10; python_version < "3.7"
Run pip download -r requirements.txt --no-deps --dest . --abi none --platform any --python-version 3.6.15
pip outputs the following:
Ignoring idna: markers 'python_version < "3.7"' don't match your environment
Description
I would like to download all the packages listed in a requirements file using a specific python version. However, the
--python-version
value isn't respected by marker evaluation.Expected behavior
I think that
pip
should use specific configuration--python-version
,--implementation
, etc when resolving environment markers.So, when the specified
requirements.txt
is used withpip download ... --python-version 3.6.15
, it should downloadidna==2.10
pip version
22.0.4
Python version
3.9.12
OS
macOS Monterey 12.3 M1
How to Reproduce
pip download -r requirements.txt --no-deps --dest . --abi none --platform any --python-version 3.6.15
pip
outputs the following:Output
Code of Conduct
The text was updated successfully, but these errors were encountered: