Skip to content

Fix pip build: pin flit-core<4 to match pip's build requirement - #115

Open
tnikolova82 wants to merge 1 commit into
mainfrom
fix-pip-flit-core-version
Open

Fix pip build: pin flit-core<4 to match pip's build requirement#115
tnikolova82 wants to merge 1 commit into
mainfrom
fix-pip-flit-core-version

Conversation

@tnikolova82

Copy link
Copy Markdown
Contributor

Summary

  • Pin flit-core>=3.11,<4 instead of just flit-core>=3.11 in the pip recipe

Problem

pip 26.x requires flit-core>=3.11,<4 in its pyproject.toml build-system:

[build-system]
requires = ["flit-core >=3.11,<4"]
build-backend = "flit_core.buildapi"

The previous constraint flit-core>=3.11 resolved to flit-core 4.0.2, which does not satisfy the <4 upper bound. This causes pip installation to fail:

ERROR: Could not find a version that satisfies the requirement flit-core<4,>=3.11 (from versions: 4.0.2)
ERROR: No matching distribution found for flit-core<4,>=3.11

Solution

Pin the upper bound to match pip's actual requirement: flit-core>=3.11,<4

Testing

After this fix is merged and pip is rebuilt, the python-buildpack PR #1211 (pip 26.2.1 update) should pass its integration tests.

Related

pip 26.x requires 'flit-core>=3.11,<4' in its pyproject.toml build-system.
The previous constraint 'flit-core>=3.11' resolved to 4.0.2, which does not
satisfy the <4 upper bound, causing pip installation to fail with:

  ERROR: Could not find a version that satisfies the requirement flit-core<4,>=3.11 (from versions: 4.0.2)

This fix pins the upper bound to match pip's actual requirement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant