-
Notifications
You must be signed in to change notification settings - Fork 38
feat: Add option to ignore wheel platform in resolver #654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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>
EmilienM
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great addition.
rd4398
left a comment
There was a problem hiding this 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
dhellmann
left a comment
There was a problem hiding this 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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plan9! :-)
LalatenduMohanty
left a comment
There was a problem hiding this 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.
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_wheelsenabled.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