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

オープン
#54 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Python
スター
0
フォーク
1
平均マージ
5時間 59分
マージ済み PR(30日)
19

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wheelgap/wheels のほかの issue

wheelgap/wheels の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。