--target required for --python-version even though using --ignore-installed --dry-run · Issue #12215 · pypa/pip (original) (raw)

Description

Just a corner case, most like. I'm using --ignore-installed --dry-run --report XYZ.txt --python-version=3.9 --only-binary=:all:

and I'm seeing ERROR: Can not use any platform or abi specific options unless installing via '--target'

The workaround is just --target .

Expected behavior

No error, since the target really doesn't matter (I think. Happy to be wrong).

pip version

23.1.2

Python version

Running on 3.11, targeting 3.9

OS

Ubuntu

How to Reproduce

$ pip install --ignore-installed --dry-run --report report.txt --python-version 3.9 --only-binary=:all: toml

Output

ERROR: Can not use any platform or abi specific options unless installing via '--target'

Code of Conduct