Add linux_riscv64 wheel to PyPI releases
Summary
pip install pyyaml on riscv64 Linux currently requires building from source (~2 min on a 1.6 GHz RISC-V SoC). Adding linux_riscv64 to the wheel build matrix would give riscv64 users a prebuilt wheel.
Evidence
|
|
| Tested wheel |
pyyaml-6.0.3-cp313-cp313-linux_riscv64.whl |
| Hardware |
BananaPi F3 (SpacemiT K1, rv64imafdcv, 8 cores @ 1.6 GHz, 16 GB RAM) |
| Python |
3.13 (CPython) |
| Build system |
cibuildwheel |
| Build time |
~2 min (native, on hardware) |
The wheel imports and passes basic smoke tests on riscv64 Linux.
Suggested CI change
Workflow: .github/workflows/ci.yaml
Add riscv64 to both the libyaml build job and the wheel matrix:
- In
linux_libyaml_matrix, add:
- { platform: manylinux_2_28, arch: riscv64, omit: skip_slow_jobs }
- In
linux_wheels_matrix, add riscv64 entries matching the s390x pattern.
Note: Use manylinux_2_28 not manylinux2014 (no riscv64 manylinux2014 image exists).
Ecosystem context
manylinux_2_28_riscv64 images are available on quay.io/pypa/ (landed in pypa/manylinux, 2025)
- cibuildwheel 3.x supports riscv64 via QEMU emulation
- auditwheel supports riscv64 platform tags
- maturin-action supports
riscv64gc-unknown-linux-gnu cross-compilation
- Packages already shipping riscv64 wheels on PyPI: aiohttp, yarl, regex, markupsafe, charset-normalizer, rpds-py, multidict, propcache, watchfiles, rignore, setproctitle
- RISC-V hardware is shipping: SiFive HiFive, SpacemiT K1/K3, Sophgo SG2044 (64-core)
Our temporary index
While upstream support is pending, we maintain a PEP 503 index with 50+ riscv64 wheels for the Python ML/AI stack, built natively on RISC-V hardware.
Tracking repo: https://github.com/gounthar/riscv64-python-wheels
Add
linux_riscv64wheel to PyPI releasesSummary
pip install pyyamlon riscv64 Linux currently requires building from source (~2 min on a 1.6 GHz RISC-V SoC). Addinglinux_riscv64to the wheel build matrix would give riscv64 users a prebuilt wheel.Evidence
pyyaml-6.0.3-cp313-cp313-linux_riscv64.whlThe wheel imports and passes basic smoke tests on riscv64 Linux.
Suggested CI change
Workflow:
.github/workflows/ci.yamlAdd riscv64 to both the libyaml build job and the wheel matrix:
linux_libyaml_matrix, add:- { platform: manylinux_2_28, arch: riscv64, omit: skip_slow_jobs }linux_wheels_matrix, add riscv64 entries matching the s390x pattern.Note: Use
manylinux_2_28notmanylinux2014(no riscv64 manylinux2014 image exists).Ecosystem context
manylinux_2_28_riscv64images are available onquay.io/pypa/(landed in pypa/manylinux, 2025)riscv64gc-unknown-linux-gnucross-compilationOur temporary index
While upstream support is pending, we maintain a PEP 503 index with 50+ riscv64 wheels for the Python ML/AI stack, built natively on RISC-V hardware.
Tracking repo: https://github.com/gounthar/riscv64-python-wheels