-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error when built wheel is for the wrong platform #16074
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
5e38b44 to
2e54e1f
Compare
|
There are no changes in the ecosystem tests, so this is ready to be reviewed and merged. |
2e54e1f to
b089410
Compare
b089410 to
da3d2c9
Compare
da3d2c9 to
c660908
Compare
|
Is it possible that this can cause false positives or regressions? What if we're just building the wheel for a resolve (i.e., |
It's technically possible but for this too happen, we need to have a case where:
Of these, (3) is very unlikely, in my experience build backends only have limited cross-compiling support if any, and I've never seen one that defaults to a different platform than the current one. It would also be strange to me if a build backend wouldn't implement
|
|
I'm wary because I think What do you mean by (3)? Yes I would only expect most build backends to target the current platform and have no conception of cross-builds. Why would "always targets a specific platform" be needed for this to cause a regression? |
This was discovered by #16074 I'm not sure what the exact schema of the cache tag is, but since the project is dead, I don't expect any new non-matching versions to follow.
|
That's a very good point, I added a test specifically for this. The good news is it's already passing as the metadata-only branch in The stronger checks uncovered a bug in how we generate tags for Pyston: #16972. Merging this PR may uncover more such problems on non-PyPI platform that usually don't have built wheels. |
This was discovered by #16074, where the wrong tag now fails the Pyston integration test. I'm not sure what the exact schema of the cache tag is, but since the project is dead, I don't expect any new non-matching versions to follow.
Error when a built wheel is for the wrong platform. This can happen especially when using `--python-platform` or `--python-version` with `uv pip install`. Fixes #16019 Ready for review but I want to make some more testing before merging.
0bb042e to
dfbb3ae
Compare
zanieb
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'd probably consider this an "enhancement" rather than a "bug"
|
guys is there any way to ignore that error? With this upgrade we cannot install |
|
@mjamroz Can you please file a new issue with a reproduction? |
Error when a built wheel is for the wrong platform. This can happen especially when using
--python-platformor--python-versionwithuv pip install.Fixes #16019