Skip to content

fix: skip legacy manylinux aliases not in PyPI allow-list#3078

Merged
messense merged 1 commit intoPyO3:mainfrom
messense:fix/manylinux2014-riscv64-pypi-tag
Mar 10, 2026
Merged

fix: skip legacy manylinux aliases not in PyPI allow-list#3078
messense merged 1 commit intoPyO3:mainfrom
messense:fix/manylinux2014-riscv64-pypi-tag

Conversation

@messense
Copy link
Member

@messense messense commented Mar 9, 2026

manylinux_2_17 has manylinux2014 as a legacy alias, but PyPI static allow-list never included manylinux2014_riscv64. This caused wheels built with --manylinux 2_17 for riscv64 to fail PyPI validation.

Only add legacy alias tags when the full tag (alias + arch) exists in PyPI ALLOWED_PLATFORMS list.

`manylinux_2_17` has `manylinux2014` as a legacy alias, but PyPI static
allow-list never included `manylinux2014_riscv64`. This caused wheels
built with `--manylinux 2_17` for riscv64 to fail PyPI validation.

Only add legacy alias tags when the full tag (alias + arch) exists in
PyPI `ALLOWED_PLATFORMS` list.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts platform tag generation to avoid emitting legacy manylinux alias tags that PyPI will reject (e.g., manylinux2014_riscv64), fixing validation failures for --manylinux 2_17 on riscv64.

Changes:

  • Import PyPI’s static ALLOWED_PLATFORMS allow-list.
  • Gate legacy alias tag emission on presence in ALLOWED_PLATFORMS.

@messense messense merged commit 896b648 into PyO3:main Mar 10, 2026
47 of 48 checks passed
@messense messense deleted the fix/manylinux2014-riscv64-pypi-tag branch March 10, 2026 00:04
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.

2 participants