MagicStack / MagicStack/httptools
Add riscv64 (linux_riscv64) wheel to PyPI releases
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 1.3k
- Forks
- 107
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Add linux_riscv64 wheel to PyPI releases
Summary
pip install httptools 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 | httptools-0.7.1-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/release.yml
Add riscv64 to the matrix:
# In strategy.matrix.cibw_arch, add riscv64:
cibw_arch: [auto64, aarch64, universal2, riscv64]
# Add exclude for riscv64 on non-linux:
exclude:
- os: windows-latest
cibw_arch: riscv64
- os: macos-latest
cibw_arch: riscv64
QEMU action is already present (for aarch64).
Ecosystem context
manylinux_2_28_riscv64images are available onquay.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-gnucross-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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con .github/workflows/release.yml e inspecciona la matriz cibw_arch existente, las exclusiones de plataforma y la configuración de QEMU para aarch64. Añade compatibilidad con riscv64 según se describe y, después, verifica que el flujo de trabajo de release produzca una wheel linux_riscv64 sin habilitarla en Windows ni macOS.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- github-actions, python
- Área
- build-system, ci-cd, release
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 68/100