MagicStack / MagicStack/uvloop
Add riscv64 (linux_riscv64) wheel to PyPI releases
还没有人认领这个 Issue。
- 主要语言
- Cython
- 星标
- 11.9k
- 派生
- 616
- PR 合并指标
- 30 天内没有已合并 PR
描述
Add linux_riscv64 wheel to PyPI releases
Summary
pip install uvloop on riscv64 Linux currently requires building from source (~5 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 | uvloop-0.22.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 | ~5 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: [x86_64, aarch64, universal2, riscv64]
# Add exclude for riscv64 on non-linux:
exclude:
- os: macos-latest
cibw_arch: riscv64
Add QEMU step and test skip:
- name: Set up QEMU
if: matrix.cibw_arch == 'riscv64'
uses: docker/setup-qemu-action@v3
with:
platforms: riscv64
# Add to env:
CIBW_TEST_SKIP: '*-linux_riscv64'
libuv has riscv64 support since v1.44. Event-loop tests may hang under QEMU, hence the test skip recommendation.
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
- 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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 .github/workflows/release.yml 开始,检查 cibw_arch 矩阵、平台排除项和现有的 wheel 测试。添加 issue 中描述的特定于 riscv64 的 QEMU 设置和 CIBW_TEST_SKIP 条目,然后验证 release workflow 能生成 linux_riscv64 wheel,且不会在仿真环境下运行事件循环测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github-actions, python
- 领域
- build-system, ci-cd, release
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100