Skip to content

Incorrect resolution, when providing --python-version equal to minimum allowable cpython version #13355

Open
@ion-elgreco

Description

@ion-elgreco

Description

I am trying to download a wheel with: pip download cryptography==44.0.0 --only-binary=:all: --no-deps --platform musllinux_1_2_x86_64 --implementation cp --python-version 39, however this fails:

ERROR: Could not find a version that satisfies the requirement cryptography==44.0.0 (from versions: 42.0.0, 42.0.1, 42.0.2, 42.0.3, 42.0.4, 42.0.5, 42.0.6, 42.0.7, 42.0.8, 43.0.0, 43.0.1, 43.0.3)
ERROR: No matching distribution found for cryptography==44.0.0

If you however provide --python-version 310 or anything larger than 39 it works. But it's cp39 wheel with abi3 so it should work on python 3.9

Expected behavior

No response

pip version

pip 25.0.1

Python version

3.11

OS

Mac OS

How to Reproduce

  1. pip download cryptography==44.0.0 --only-binary=:all: --no-deps --platform musllinux_1_2_x86_64 --implementation cp --python-version 39 <-- this fails, but shouldn't
  2. Now run: pip download cryptography==44.0.0 --only-binary=:all: --no-deps --platform musllinux_1_2_x86_64 --implementation cp --python-version 310 <-- this works

Output

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: needs triageIssues/PRs that need to be triagedtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions