Skip to content

Allow manylinux/musllinux riscv64 wheel upload (PEP 600/656) #18390

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

mayeut
Copy link
Contributor

@mayeut mayeut commented Jul 20, 2025

Fixes #18243.

All mainstream distros target or support the RV64GC arch + LP64D abi. This can serve as a baseline for riscv64.
python -c "import sysconfig; print(sysconfig.get_platform()) returns linux-riscv64 on all those distros.

Optional extensions and/or later profiles shall go through a PEP (same status as on x86_64 for v2/v3/v4 ISA extensions).

@mayeut mayeut requested a review from a team as a code owner July 20, 2025 07:50
@markdryan
Copy link

@mayeut I'm working on the wording.

@di di mentioned this pull request Jul 21, 2025
fix pypi#18243

All mainstream distros support the `RVA20U64` profile (which defines the ABI) targeting the `RV64GC` ISA (no optional extensions). This can serve as a baseline for `riscv64`.

Optional extensions and/or later profiles shall go through a PEP (same status as on x86_64 fo v2/v3/v4 ISA extensions).
@di di merged commit 250b447 into pypi:main Jul 23, 2025
20 checks passed
zanieb added a commit to astral-sh/uv that referenced this pull request Jul 23, 2025
messense added a commit to PyO3/maturin that referenced this pull request Jul 28, 2025
#2694)

Recently, pypi has just provided support for riscv wheel uploads. For
details, please see pypi/warehouse#18390

Here you can see that test.pypi.org has deployed support,
https://github.com/pypi/warehouse/deployments/test.pypi.org

I think maturin-action can also provide support for this, mainly by
setting manylinux_2_39 as the default and supported version of riscv64,
so that riscv64 packages that can be uploaded to pypi can be packaged

Here are the results of my github action run, 

CI result:
[release](https://github.com/ffgan/maturin/actions/runs/16551719275)
[test](https://github.com/ffgan/maturin/actions/runs/16551720338)



The results show that riscv64 runs well


**Other Info**

Co-authored-by: @kotvaer
Co-authored-by: nijincheng@iscas.ac.cn;

---------

Co-authored-by: messense <messense@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support riscv64 platform
3 participants