ci: build aarch64 manylinux wheels on ubuntu-24.04-arm runners#52
Open
johnnynunez wants to merge 2 commits into
Open
ci: build aarch64 manylinux wheels on ubuntu-24.04-arm runners#52johnnynunez wants to merge 2 commits into
johnnynunez wants to merge 2 commits into
Conversation
nlopt ships no aarch64 wheels on PyPI, forcing source builds (or making installs impossible) on ARM hosts like NVIDIA DGX Spark, Jetson Thor and GH200. GitHub now provides free ubuntu-24.04-arm runners for public repos, so add them to the cibuildwheel matrix (manylinux_2_28_aarch64 image) and to the wheel test matrix. The existing test-step file discovery already matches (runner.os=Linux -> 'lin', chunk=ubuntu-24.04-arm).
numpy stopped publishing manylinux2014 wheels, so pip builds it from source inside the cibuildwheel container; manylinux2014's gcc 10.2.1 fails numpy's GCC>=10.3 check. manylinux_2_28 ships a modern toolchain (same image family already used for aarch64).
Author
|
@DanielBok could you review, merge and deploy new version release for all arm users? |
DanielBok
approved these changes
Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
nlopt currently ships no aarch64 wheels on PyPI, making it uninstallable (or forcing slow/failing source builds) on ARM Linux hosts — NVIDIA DGX Spark, Jetson Thor, GH200, AWS Graviton, etc. This blocks downstream packages that depend on nlopt (e.g. dex-retargeting, used by NVIDIA Isaac Teleop / LeRobot) on ARM.
GitHub now provides free
ubuntu-24.04-armrunners for public repos, so wheels can be built natively — no QEMU, no cross-compilation.Changes
build_wheels_unix: addubuntu-24.04-armto the matrix +CIBW_MANYLINUX_AARCH64_IMAGE: quay.io/pypa/manylinux_2_28_aarch64.test-wheels: addubuntu-24.04-armto the matrix (the existing wheel-discovery logic already handles it:runner.os=Linux→lin, chunk = matrix os).manylinux_2_28: numpy no longer publishes manylinux2014 wheels, soCIBW_BEFORE_BUILD: pip install numpybuilds numpy from source inside the container and fails manylinux2014's gcc 10.2.1 (NumPy requires GCC >= 10.3). This currently breaks the ubuntu-latest job on master too; manylinux_2_28 ships a modern toolchain and matches the aarch64 image family.Evidence
Full CI run on my fork — all build + all 25 test jobs green (cp310–cp314 × 5 platforms): https://github.com/johnnynunez/nlopt-python/actions/runs/28717151621
Produced artifacts include
nlopt-2.10.0-cp3{10..14}-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.Additionally verified on real ARM hardware (NVIDIA DGX Spark, aarch64, Python 3.12): the cp312 wheel installs with numpy 2.5.1 and solves the NLopt tutorial problem (LD_MMA, two inequality constraints) to the exact optimum (1/3, 8/27).
Note: the
Deploy packagesjob failed only on my fork for the expected reason (no PyPI credentials there); it is release-gated and unaffected by this change.