Installing with --python-version doesn't resolve deps for indicated version #12770
Closed
1 task done
Labels
C: dependency resolution
About choosing which dependencies to install
resolution: duplicate
Duplicate of an existing issue/PR
type: bug
A confirmed bug or unintended behavior
Description
I recently attempted to
install
to--target
using--python-version
. After learning that I also had to supply--only-binary :all:
, the command completed, but relevant dependencies dependent on the Python version were missing.It seems
backports.tarfile
wasn't installed, even though it's required on Python 3.8.Expected behavior
Install with
--python-version
should resolve dependencies the same as if the command had been run on that Python version.pip version
24.0
Python version
3.12
OS
Windows/macOS
How to Reproduce
See description
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: