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

Aperta
#54 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
docker, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Python
Stelle
0
Fork
1
Merge medio
5h 59m
PR unite (30g)
19

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wheelgap/wheels

Tutte le issue di wheelgap/wheels

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.