|
| 1 | +--- |
| 2 | +title: RISC-V is now officially supported by CPython! |
| 3 | +publishDate: 2026-08-24 |
| 4 | +author: Stan Ulbrych |
| 5 | +description: > |
| 6 | + I’m happy to announce that RISC-V platforms are now officially supported by |
| 7 | + CPython. 🎉 🚀 |
| 8 | +tags: [] |
| 9 | +published: true |
| 10 | +--- |
| 11 | +Over the last few months, I’ve been working on improving CPython’s support for |
| 12 | +the RISC-V architecture, and I’m thrilled to announce that RISC-V is now |
| 13 | +officially supported by CPython as a [tier 3](https://peps.python.org/pep-0011/#tier-3) |
| 14 | +platform! 🎉 🚀 |
| 15 | + |
| 16 | +## What is RISC-V? |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +[RISC-V](https://riscv.org/) is an open [instruction set architecture (ISA)](https://en.wikipedia.org/wiki/Instruction_set_architecture). Importantly, |
| 21 | +unlike proprietary instruction sets (such as x86 and ARM), it is developed as an |
| 22 | +open standard and can be implemented by anyone. |
| 23 | + |
| 24 | +Its ecosystem has grown considerably in recent years and is [projected to |
| 25 | +quadruple by 2032](https://finance.yahoo.com/technology/articles/risc-v-market-projected-quadruple-101200888.html). With that growth, it’s increasingly important that |
| 26 | +Python works reliably on these platforms. |
| 27 | + |
| 28 | +## Getting here |
| 29 | + |
| 30 | +This would not have been possible without community contributions. RISC-V support |
| 31 | +in CPython has developed over time with people testing on real hardware, |
| 32 | +fixing architecture-specific issues, improving build support, reporting bugs, |
| 33 | +and reviewing patches. That work is what has brought the platform to the point |
| 34 | +where it could be added to [PEP 11](https://peps.python.org/pep-0011/). |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +A particularly important part of this has been having reliable, ongoing testing |
| 39 | +on real RISC-V hardware. I’d like to thank the [RISE Project](https://riseproject.dev/) for their |
| 40 | +support. RISE has kindly provided several RISC-V machines for CPython, |
| 41 | +giving us buildbots for testing as well as debugging architecture-specific issues. |
| 42 | + |
| 43 | +I’d especially like to thank [Ludovic Henry](https://github.com/luhenry) from the RISE Project, |
| 44 | +[Furkan Onder](https://github.com/furkanonder), and [Emma Smith](https://emmatyping.dev/), along with the many others who have |
| 45 | +contributed. Additionally, I'm personally grateful for the [Sovereign Tech Agency](https://www.sovereign.tech/), |
| 46 | +which through their amazing fellowship supported my work on this. |
| 47 | + |
| 48 | +## What’s next? |
| 49 | + |
| 50 | +While tier 3 support is an important milestone, there’s plenty more to do. |
| 51 | +We are currently investigating how to improve our testing further by bringing |
| 52 | +RISC-V directly into CPython’s CI, again kindly supported by RISE with their |
| 53 | +[RISE RISC-V Runners initiative](https://riscv-runners.riseproject.dev/). This should give contributors faster |
| 54 | +feedback than the [buildbots](https://buildbot.python.org/) (which usually run *after* a patch is merged) |
| 55 | +and would allow us to catch RISC-V-specific problems earlier. |
| 56 | + |
| 57 | +In the long term, I’d also love to work towards promoting RISC-V to tier 2 support. |
| 58 | + |
| 59 | +There are also opportunities to move beyond simply making CPython work on RISC-V. |
| 60 | +I’d like to explore architecture-specific optimizations to take better advantage |
| 61 | +of RISC-V capabilities where doing so can improve CPython’s performance. |
| 62 | + |
| 63 | +Importantly, we need people to use it and give us feedback. If you have access |
| 64 | +to RISC-V hardware, please try building and running CPython, run your workloads |
| 65 | +and test suites, and please [let us know what breaks](https://github.com/python/cpython/issues). Testing across |
| 66 | +different RISC-V environments will help us make support better for everyone! |
| 67 | + |
| 68 | +CPython is also only one part of the Python ecosystem. Continued community work |
| 69 | +across packages, compilers, tooling, and infrastructure will be important in |
| 70 | +making RISC-V an increasingly well-supported platform for Python as a whole. |
| 71 | + |
| 72 | +There’s a lot still to do, and I’m looking forward to continuing that work! |
0 commit comments