Allow packaging of wheels for riscv64 architecture#150
Allow packaging of wheels for riscv64 architecture#150Julian merged 4 commits intocrate-py:mainfrom ffgan:feature/allow_riscv_package
Conversation
Co-authored-by: <nijincheng@iscas.ac.cn>;
|
Thanks for the info and thorough post (and all your work). If it's uploadable to PyPI now we're almost there, but can you take the maturin-action work upstream to the PyO3 repository as well so we're not maintaining a fork of an action that I anyways would like to eventually remove? Is there not yet an issue/PR there for RISC support? |
|
If the upgrade is required then I'm sure they'll definitely want the fix, as otherwise whatever support is in place isn't actually usable. |
Co-authored-by: nijincheng@iscas.ac.cn;
|
@Julian Hello, sorry to bother you again. I've made some changes to the pull request description, specifically correcting my mistake in thinking that PyPI only supports manylinux_2_39 and above. In fact, there should be no limit. |
|
Hey! Great, glad to hear. CI is failing (for style reasons) but after fixing that sounds like we should be good to give this a try? |
|
fine! root@u22:~# pip install rpds-py
Collecting rpds-py
Downloading rpds_py-0.27.0-cp310-cp310-manylinux_2_31_riscv64.whl.metadata (4.2 kB)
Downloading rpds_py-0.27.0-cp310-cp310-manylinux_2_31_riscv64.whl (401 kB)
WARNING: Error parsing dependencies of devscripts: Invalid version: '2.22.1ubuntu1'
Installing collected packages: rpds-py
Successfully installed rpds-py-0.27.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning. |
|
Nice, thanks for all your effort! |
The issue mentioned in #147 about uploading to test.pypi.org has been resolved
Now pypi already supports uploading pypi packages for riscv64 architecture, for details, please see pypi/warehouse#18390
Here is the link I just uploaded to test.pypi.org https://test.pypi.org/project/rpds-py/0.26.0/#files
(the version in testpypi is manylinux_2_31,which is fine to upload to pypi,not just manylinux_2_39.)
(I made a mistake before, thinking that pypi can only upload manylinux_2_39 and above packages, in fact, it is not, riscv64 manylinux should support all)
These whl files come from the CI link here. the riscv64 zip,link
For detailed packaging methods, please see this link
I test on ubuntu 24.04 and ubuntu 22.04 riscv
The following is the test script and output
ubuntu 24 riscv result
ubuntu 22 riscv result
other info
Co-authored-by: nijincheng@iscas.ac.cn;