Skip to content

Conversation

@tiran
Copy link
Collaborator

@tiran tiran commented Jul 3, 2025

A package can now ignore the upstream wheels' platforms when looking up distributions without an sdist on PyPI. The option only applies to packages that have resolver_dist.include_wheels enabled.

The flag allows to package versions that neither provide a sdist nor a binary wheel for the current platform, e.g. Torch builds on ppc64le. Torch does neither upload sdists nor does it provide ppc64le wheels on PyPI.

Fixes: #556

A package can now ignore the upstream wheels' platforms when looking up
distributions without an sdist on PyPI. The option only applies to
packages that have `resolver_dist.include_wheels` enabled.

The flag allows to package versions that neither provide a sdist nor a
binary wheel for the current platform, e.g. Torch builds on ppc64le.
Torch does neither upload sdists nor does it provide ppc64le wheels on
PyPI.

Fixes: python-wheel-build#556
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@tiran tiran requested a review from a team as a code owner July 3, 2025 06:46
@mergify mergify bot added the ci label Jul 3, 2025
Copy link
Contributor

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

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

LGTM, great addition.

Copy link
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

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

Nice!
This looks good! I will leave it to @dhellmann for final approval

Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

We discussed my concerns about how we will use this downstream, and @tiran pointed out that most of the packages have sdists, so we won't have to have a configuration file for everything that is being built for the CPU architectures that do not have wheels published. We agreed if we started to accumulate a lot of config for packages with only this new flag enabled, we would come back and add a global flag to change the default setting.

</head>
<body>
<h1>Links for fromager</h1>
<a href="https://files.pythonhosted.org/packages/7c/06/620610984c2794ef55c4257c77211b7a625431b380880c524c2f6bc264b1/fromager-0.51.0-cp311-abi3-manylinux_2_28_plan9.whl" >fromager-0.51.0-cp311-abi3-manylinux_2_28_plan9.whl</a>
Copy link
Member

Choose a reason for hiding this comment

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

Plan9! :-)

@mergify mergify bot merged commit 4fa10a0 into python-wheel-build:main Jul 3, 2025
109 checks passed
Copy link
Member

@LalatenduMohanty LalatenduMohanty left a comment

Choose a reason for hiding this comment

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

I am late to approve this , but looks good to me. This is going to be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolver: relax wheel tags check to interpreter + abi + linux/any

5 participants