Targets: Python 3.15 wheels for Linux on ARM (manylinux_2_28_aarch64)

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, python

Research direction

Start in scripts/gap_wheels.py by reading LINUX_POLICIES and PUBLISH_TAGS next to the existing 3.15 linux-x86_64 entry, then the TARGETS entry in scripts/build_lab.py. The issue asks for a plan to be agreed before any code, because it changes what the pipeline trusts. Done means tests/test_gap_wheels.py covers the aarch64 tag and the refused cases, and uvx --python 3.14 [email protected] passes offline.

Written by the indexing model from the issue text.

Description

enhancement help wanted

The pipeline publishes Python 3.15 wheels for two platforms: Linux x86_64 (manylinux_2_28_x86_64) and Windows x64. Linux on ARM gets none, though it's where many projects run in production (AWS Graviton, Ampere) and on Apple silicon through Docker.

The 300-repo corpus shows the size of the gap. Of 84 projects with a root lockfile or fully pinned requirements.txt, 81 have at least one package with no wheel for 3.15 on linux-aarch64. Most of those gaps close by upgrading, but some have no upstream fix yet. Take zstandard 0.25.0: it's the newest release, it's pinned in 19 of the 21 corpus projects that have a zstandard gap, and PyPI has no cp315 Linux wheel for it. This repo already publishes verified 0.25.0 wheels for 3.15 on linux-x86_64 and win-amd64 (data/gap-wheels.json), and nothing for aarch64.

Most of the machinery is already there:

  • LINUX_POLICIES in scripts/gap_wheels.py has an entry with "machine": 183 (EM_AARCH64), for musllinux_1_2_aarch64.
  • The build lab and the install test already use the ubuntu-24.04-arm runner (3.14 musl-aarch64).

Where

  • The lab target: TARGETS in scripts/build_lab.py, in wheelgap/tracker (which writes data/builds.json) and its copy here. The 3.15 linux-x86_64 entry builds in the quay.io/pypa/manylinux_2_28_x86_64 image pinned by digest, with /opt/python/cp315-cp315/bin/python and plat.
  • PUBLISH_TAGS in scripts/gap_wheels.py: one exact tag per target.
  • LINUX_POLICIES in the same file: a manylinux_2_28_aarch64 entry, copied from auditwheel's manylinux-policy.json at the pinned auditwheel version (the library list and the loader name differ from x86_64: ld-linux-aarch64.so.1).
  • The install test's table in scripts/gap_wheels.py (the 3.15 linux-x86_64 entry uses python:3.15-slim-trixie pinned by digest): the arm64 digest of the same image.
  • README.md's table of targets.

What to do

Please post the plan in this issue first: it changes what the pipeline trusts.

  • Name the two images and their arm64 digests: quay.io/pypa/manylinux_2_28_aarch64 for the build, python:3.15-slim-trixie for the install test. Say how each digest was checked.
  • Copy the manylinux_2_28 aarch64 policy from auditwheel at the version REPAIR_TOOLS pins, with a comment saying where it came from, as the x86_64 entry has.
  • Add the lab target in the tracker, and let one lab run fill data/builds.json for it.
  • Then add the target here: PUBLISH_TAGS, the build matrix, the install test.

Done when:

  • The plan is agreed here.
  • tests/test_gap_wheels.py covers the new tag: an aarch64 wheel tagged cp315-cp315-manylinux_2_28_aarch64 is staged; the same file with an x86_64 ELF (EM_X86_64) inside is refused; a library outside the aarch64 policy is refused.
  • One batch builds zstandard 0.25.0 for 3.15 linux-aarch64 twice, byte-identical, and it passes the install test. The PR links both runs and the sha256.
  • README.md lists the target.
  • uvx --python 3.14 [email protected] passes, offline.
Dominant language
Python
Stars
0
Forks
1
Avg merge
5h 42m
Merged PRs (30d)
20

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wheelgap/wheels

All issues in wheelgap/wheels

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.