Skip to content

Experiment with --no-strip-markers with uv pip compile#2847

Draft
agriyakhetarpal wants to merge 5 commits into
pypa:mainfrom
agriyakhetarpal:improve-gh-2845
Draft

Experiment with --no-strip-markers with uv pip compile#2847
agriyakhetarpal wants to merge 5 commits into
pypa:mainfrom
agriyakhetarpal:improve-gh-2845

Conversation

@agriyakhetarpal
Copy link
Copy Markdown
Member

Not sure if we like this or not, but maybe it's worth looking into. cc: @joerick, following on from #2845.

@agriyakhetarpal agriyakhetarpal requested a review from joerick May 13, 2026 09:33
@joerick
Copy link
Copy Markdown
Contributor

joerick commented May 13, 2026

Oh, good find! Although it looks to me that it isn't working right- it's only including one pip version rather than both with different markers.

Comment thread cibuildwheel/resources/constraints.in Outdated
Comment thread cibuildwheel/resources/constraints.in Outdated
@@ -1,4 +1,5 @@
pip
pip>=26.1.1; (implementation_name != "graalpy" or platform_system != "Windows") and python_version >= "3.10"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pip>=26.1.1; (implementation_name != "graalpy" or platform_system != "Windows") and python_version >= "3.10"
pip>=26.1.1; (implementation_name != "graalpy" or platform_system != "Windows") and python_version >= "3.10" and python_version < "3.13"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't quite work, because the ones that don't match don't get put into the constraints file.

agriyakhetarpal and others added 2 commits May 14, 2026 09:35
Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
@joerick
Copy link
Copy Markdown
Contributor

joerick commented May 14, 2026

Might be worth a report to uv - --no-strip-markers by my reading of the diff, it seems to be consolidating each package into a single entry and only keeping the markers from one. I think it should be pinning each entry with different markers separately and keeping them both.

@agriyakhetarpal
Copy link
Copy Markdown
Member Author

Yup, I'll spend some time writing a bug report later today!

@agriyakhetarpal agriyakhetarpal marked this pull request as draft May 14, 2026 11:27
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.

3 participants