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

Abierto
#54 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
0
Forks
1
Merge medio
5 h 59 min
PR fusionados (30 d)
19

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de wheelgap/wheels

Todos los issues de wheelgap/wheels

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.