Fix pip build: pin flit-core<4 to match pip's build requirement - #115
Open
tnikolova82 wants to merge 1 commit into
Open
Fix pip build: pin flit-core<4 to match pip's build requirement#115tnikolova82 wants to merge 1 commit into
tnikolova82 wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
flit-core>=3.11,<4instead of justflit-core>=3.11in the pip recipeProblem
pip 26.x requires
flit-core>=3.11,<4in itspyproject.tomlbuild-system:The previous constraint
flit-core>=3.11resolved to flit-core 4.0.2, which does not satisfy the<4upper bound. This causes pip installation to fail:Solution
Pin the upper bound to match pip's actual requirement:
flit-core>=3.11,<4Testing
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