Skip to content

Gap wheels for Linux: auditwheel repair inside the build, then manylinux/musllinux tags #124

Closed

Description

@patrickballard

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

  1. In the untrusted build job (scripts/gap_wheels.py run_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.
  2. Extend PUBLISH_TAGS with each Linux target's exact tag.
  3. The install test needs a fresh runner (or container) of the target: Ubuntu for manylinux, an Alpine container for musl.
  4. 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.
  5. 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.

Activity

  1. added
    enhancement
    help wanted
    high impact
    on Nov 16, 2026
  2. patrickballard commented on Nov 16, 2026

    @patrickballard
    ContributorAuthor

    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).
    • linux-x86_64: 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_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:

    1. 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+.
    2. Make PUBLISH_TAGS exact per target (musllinux_1_2_aarch64, manylinux_2_28_x86_64) and keep refusing abi3.
    3. Hold publishing until the index works with uv (per-package pinning), so Linux users aren't told to avoid uv.

    (Comment assisted by Claude.)

  3. patrickballard commented on Nov 17, 2026

    @patrickballard
    ContributorAuthor

    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.)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedhigh impact

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions