You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gap wheels for Linux: auditwheel repair inside the build, then manylinux/musllinux tags #124
The gap wheels index (https://wheelgap.github.io/tracker/wheels/) publishes only Windows wheels so far. Of the 36 pairs the first batch verified, 18 were Linux (musl-aarch64 and free-threaded linux-x86_64), and all were held back. pip wheel tags a Linux build linux_aarch64 or linux_x86_64, which pip installs on any Linux, glibc or musl, any version, so a musl-built wheel would land on glibc machines and break. Most people deploy to Linux, so this is the biggest step left for gap wheels.
What to do
In the untrusted build job (scripts/gap_wheels.pyrun_build), run auditwheel repair on Linux builds before hashing: --plat manylinux_2_28_x86_64 (or the oldest the build allows) for glibc, and musllinux_1_2_aarch64 inside the Alpine container for musl. Both builds must still come out byte-identical. Check that auditwheel's output is deterministic; if it isn't, find what varies (timestamps in the zip, library hashes) and fix it, or report the share that stays reproducible.
Extend PUBLISH_TAGS with each Linux target's exact tag.
The install test needs a fresh runner (or container) of the target: Ubuntu for manylinux, an Alpine container for musl.
The DLL check's Linux equivalent: auditwheel already bundles external libraries, so it's covered, but say so in the module docstring and on the wheels page.
A spike first is welcome: run step 1 for a few pairs on a branch and post how many come out byte-identical.
This changes what the tracker publishes, so please discuss the plan here before the publishing part.
Spike results (batch run, after #132 added auditwheel repair before hashing): 16 of 16 Linux pairs came out byte-identical after repair. That's 10 musl-aarch64 and 6 free-threaded linux-x86_64, the same pairs that matched unrepaired in the first batch.
Tags they got:
musl-aarch64: musllinux_1_2_aarch64 for all 10 (duckdb is cp312-abi3).
So reproducibility isn't the blocker; the glibc floor is. The x86_64 builds run on ubuntu-24.04 (glibc 2.39), and auditwheel can only tag down to the oldest glibc the binary actually needs. manylinux_2_39 wheels won't install on Debian 12 (2.36) or RHEL 9 (2.34), which is most of the audience.
Next steps before any Linux publishing:
Build glibc targets inside quay.io/pypa/manylinux_2_28 (pinned by digest), as the musl target already runs inside Alpine. That gives manylinux_2_28 wheels, which install on RHEL 8+, Debian 11+ and Ubuntu 20.04+.
Make PUBLISH_TAGS exact per target (musllinux_1_2_aarch64, manylinux_2_28_x86_64) and keep refusing abi3.
Hold publishing until the index works with uv (per-package pinning), so Linux users aren't told to avoid uv.
Activity
Gap wheels: auditwheel repair on Linux builds (spike for #124) (#132)
patrickballard commentedon Nov 16, 2026
Spike results (batch run, after #132 added
auditwheel repairbefore hashing): 16 of 16 Linux pairs came out byte-identical after repair. That's 10 musl-aarch64 and 6 free-threaded linux-x86_64, the same pairs that matched unrepaired in the first batch.Tags they got:
musllinux_1_2_aarch64for all 10 (duckdb iscp312-abi3).manylinux_2_39(mysqlclient, polars-runtime-32),manylinux_2_34(safetensors, thrift, zstandard),manylinux2014/_2_17(lz4).So reproducibility isn't the blocker; the glibc floor is. The x86_64 builds run on ubuntu-24.04 (glibc 2.39), and auditwheel can only tag down to the oldest glibc the binary actually needs.
manylinux_2_39wheels won't install on Debian 12 (2.36) or RHEL 9 (2.34), which is most of the audience.Next steps before any Linux publishing:
quay.io/pypa/manylinux_2_28(pinned by digest), as the musl target already runs inside Alpine. That givesmanylinux_2_28wheels, which install on RHEL 8+, Debian 11+ and Ubuntu 20.04+.PUBLISH_TAGSexact per target (musllinux_1_2_aarch64,manylinux_2_28_x86_64) and keep refusing abi3.(Comment assisted by Claude.)
patrickballard commentedon Nov 17, 2026
Shipped. The gap-wheel pipeline now lives in wheelgap/wheels; wheelgap/wheels#3 added Linux targets with exact manylinux_2_28 and musllinux_1_2 tags, ELF library checks and container install tests. The first Linux batch is live on https://wheelgap.github.io/wheels/simple/ (run https://github.com/wheelgap/wheels/actions/runs/44076251947): 8 musl-aarch64 and 4 free-threaded linux-x86_64 wheels. Each one installed and imported in a fresh container, and the free-threaded ones kept the GIL off.
(Reply assisted by Claude.)