Skip to content

pypi: strip stacked auditwheel hash suffixes - #1986

Open
pohlarized wants to merge 1 commit into
google:mainfrom
pohlarized:agent-upstream-pr-r2/pypi-sysdeps-multi-hash
Open

pohlarized wants to merge 1 commit into
google:mainfrom
pohlarized:agent-upstream-pr-r2/pypi-sysdeps-multi-hash

Conversation

@pohlarized

@pohlarized pohlarized commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

auditwheelHashPat previously matched only a single -<8+ hex> suffix before the first dot with a greedy stem group. When a pre-built library wheel such as scipy-openblas64 is already repaired by auditwheel and its libraries are re-bundled into a downstream wheel such as numpy, auditwheel appends a second hash suffix (for example libgfortran-83c28eba-468e71e5.so.5.0.0). Repeat the hash suffix group and make the stem match non-greedy so unbundledSoname strips all auditwheel hashes before builtin and SONAME filtering.

Across 2,943 evaluated PyPI wheels, stripping stacked auditwheel hashes clears invalid runtime specifiers across 81 plans in 2 packages (numpy, scipy), with 0 regressions. Combined with #1987 to omit remaining wheel-born .libs/ entries, this 2-PR stack unlocks +53 wheel builds across 95 updated plans.

Children: #1987

auditwheelHashPat previously matched only a single -<8+ hex> suffix
before the first dot with a greedy stem group. When a pre-built library
wheel such as scipy-openblas64 is already repaired by auditwheel and its
libraries are re-bundled into a downstream wheel such as numpy,
auditwheel appends a second hash suffix (for example
libgfortran-83c28eba-468e71e5.so.5.0.0). Repeat the hash suffix group
and make the stem match non-greedy so unbundledSoname strips all
auditwheel hashes before builtin and SONAME filtering.
@pohlarized pohlarized self-assigned this Nov 5, 2026
@pohlarized pohlarized added feature request New feature or request go Pull requests that update go code labels Nov 5, 2026
@pohlarized
pohlarized marked this pull request as ready for review November 6, 2026 18:24
@pohlarized
pohlarized requested a review from msuozzo November 6, 2026 18:24

This branch has not been deployed

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

Labels

feature request New feature or request go Pull requests that update go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant