Skip to content

Accept more foreign --platform "YOLO-mode" wheels.#2607

Merged
jsirois merged 2 commits intopex-tool:mainfrom
jsirois:YOLO-mode/fix
Dec 2, 2024
Merged

Accept more foreign --platform "YOLO-mode" wheels.#2607
jsirois merged 2 commits intopex-tool:mainfrom
jsirois:YOLO-mode/fix

Conversation

@jsirois
Copy link
Copy Markdown
Member

@jsirois jsirois commented Dec 2, 2024

Previously, when speculatively building a wheel from an sdist for a
foreign platform target, the wheel tags needed to match the foreign
platform target's tags exactly in all cases. For --complete-platform
this makes sense, we have complete information about the foreign
platform target's tags, but for an abbreviated --platform it does not
since we have abbreviated information that is not enough to know a tag
mismatch definitively signals the wheel will never work on the foreign
platform target. Now only those definitive cases (e.g.: the speculative
wheel is Linux but the foreign abbreviated platform is macOS) are
rejected. This will let some eventually failing wheels though, but the
warning added in #2533 already covers this risk.

Previously, when speculatively building a wheel from an sdist for a
foreign platform target, the wheel tags needed to match the foreign
platform target's tags exactly in all cases. For `--complete-platform`
this makes sense, we have complete information about the foreign
platform target's tags, but for an abbreviated `--platform` it does not
since we have abbreviated information that is not enough to know a tag
mismatch definitively signals the wheel will never work on the foreign
platform target. Now only those definitive cases (e.g.: the speculative
wheel is Linux but the foregin abbreviated platform is macOS) are
rejected.
@jsirois jsirois merged commit ce30d98 into pex-tool:main Dec 2, 2024
@jsirois jsirois deleted the YOLO-mode/fix branch December 2, 2024 08:42
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.

1 participant