← Back to Blog
Software Ecosystem

CPython Officially Adds RISC-V as Tier 3 Platform — First Open ISA in Python’s Support List

CPython PEP 11 Tier 3 RISC-V RISE Project PyTorch

TL;DR: CPython core developer Stan Ulbrych announced that riscv64-unknown-linux-gnu is now a PEP 11 Tier 3 supported platform for both GCC and Clang with glibc. The Python Steering Council approved the designation on August 20, it was formally added to PEP 11 on August 22, and the public announcement was made on August 24, 2026. RISC-V is the only fully open instruction set architecture in CPython’s official support list.

What Tier 3 Actually Means

PEP 11 defines three support tiers with very different guarantees. Tier 3 is the entry-level designation — it is a maintenance contract, not a performance guarantee.

At Tier 3, a platform needs:

  • A reliable buildbot that continuously builds and tests the platform
  • At least one core developer as a named maintainer

But Tier 3 does not mean:

  • Failures block a Python release (they don’t)
  • There is a response SLA for fixing breakage (there isn’t)
  • Every regression must be fixed before the next release

For RISC-V, the named maintainers are Stan Ulbrych (GCC configuration) and Emma Smith (Clang configuration). This means RISC-V now has a formal place in CPython’s governance process — it is no longer merely tolerated platform code.

The Hardware Behind the Support

This milestone was not achieved by merging a patch and hoping. The RISE Project (RISC-V International’s Software Ecosystem effort) provided multiple RISC-V machines to the CPython project. These machines run buildbots that catch architecture-specific bugs before they ship.

Key contributors acknowledged:

  • Ludovic Henry (RISE Project) — infrastructure coordination
  • Furkan Onder — architecture-specific patches
  • Emma Smith — Clang configuration maintainer
  • Stan Ulbrych — GCC configuration maintainer, announcement author

The Sovereign Tech Agency also funded a fellowship that supported Ulbrych’s direct work on this effort.

Why real hardware matters: Cross-compilation can produce a binary that starts up, but only native execution reveals alignment faults, atomic instruction quirks, and vector extension edge cases. The RISE buildbots provide the feedback loop that makes Tier 3 meaningful rather than a fiction.

PEP 11 Tier Comparison

Tier CI Testing Maintainers Blocks Release? Fix SLA Examples
Tier 1 Every commit All core devs Yes Must fix before release x86-64 Linux GCC, AArch64 Linux GCC, macOS Apple Silicon, Windows x64
Tier 2 Reliable buildbot ≥2 core devs Yes Fix or revert in 24h AArch64 Linux Clang, Windows ARM64, WASI, x86-64 Linux Clang
Tier 3 Reliable buildbot ≥1 core dev No No SLA RISC-V (riscv64), Android, iOS, FreeBSD, s390x

Ecosystem Readiness: PyTorch, NumPy, pip

CPython is the interpreter — but the package ecosystem is the real blocker for production adoption. Here is the current state:

Package Manager

  • pip 24.1+ understands manylinux_2_39_riscv64 and musllinux_1_2_riscv64 wheel tags
  • Packages without a riscv64 wheel fall back to building from source
  • Older pip versions (<24.1) silently match older linux_riscv64 tags — always upgrade pip first

Key Packages with riscv64 Wheels

Package riscv64 Wheel Source Notes
PyTorch 2.13.0 ✅ Yes RISE Python Wheels CPython 3.12–3.14t; 165,591 / 212,038 tests pass (99.998%); no RVV vectorization yet, FBGEMM/QNNPACK unavailable
NumPy ✅ Yes RISE Python Wheels Full riscv64 wheel available
pandas ✅ Yes RISE Python Wheels Full riscv64 wheel available
Most other PyPI packages ✅ No Build from source Use RISE supplementary package index for popular libraries

Caveat: PyTorch on riscv64 currently falls back to scalar code (no RVV vectorization). Quantization backends (FBGEMM, QNNPACK) are not yet available. Performance-critical workloads should benchmark before committing.

Roadmap: CI Integration → Tier 2 → Optimizations

The author outlined a clear three-phase roadmap:

Phase 1: Pre-Merge CI (Near-term)

Currently, RISC-V buildbots run after a patch is merged. The RISE RISC-V Runners initiative aims to integrate RISC-V test runners directly into CPython’s CI pipeline, so RISC-V-specific failures show up in the pull request — not in post-merge email. This is the single biggest velocity improvement for contributors.

Phase 2: Tier 2 Promotion (Medium-term)

Tier 2 requires:

  • At least two core developers as platform maintainers
  • More consistent buildbot coverage across toolchain variants
  • A track record of low regression rates
  • 24-hour fix-or-revert SLA for breakage

This is as much a social milestone as a technical one — it requires sustained maintainer bandwidth and community trust.

Phase 3: Architecture-Specific Optimizations (Long-term)

RISC-V’s modular extension model (Vector, BitManip, Crypto, Hypervisor) means a generic build leaves significant performance on the table. Potential optimization areas:

  • RVV (Vector) — vectorize hot loops in the interpreter
  • BitManip — optimize bit-twiddling operations
  • Crypto — accelerate hash and crypto operations
  • Hypervisor — enable efficient VM-based testing

This is the difference between “it runs” and “it runs well.”

Building CPython on RISC-V

For developers with access to RISC-V hardware, the build process is straightforward:

# Prerequisites (Ubuntu/Debian on riscv64) sudo apt install build-essential libssl-dev libffi-dev zlib1g-dev \ libncurses5-dev libgdbm-dev libnss3-dev libsqlite3-dev \ libreadline-dev libbz2-dev liblzma-dev # Clone CPython git clone https://github.com/python/cpython.git cd cpython # Configure and build ./configure --prefix=/opt/cpython-rv --enable-optimizations make -j$(nproc) # Run the test suite ./python -m test # Install sudo make install # Verify /opt/cpython-rv/bin/python3 --version # Python 3.14.0+ (development build) # Check platform triplet /opt/cpython-rv/bin/python3 -c "import sysconfig; print(sysconfig.get_platform())" # linux-riscv64

Community ask: The CPython team explicitly requests testing on real RISC-V hardware across workloads and test suites, and reporting failures on the CPython issue tracker. Testing across different RISC-V environments (both GCC and Clang toolchains) is the most useful contribution, since a single buildbot configuration misses toolchain-specific bugs.

What This Means for the RISC-V Ecosystem

Python is the lingua franca of AI/ML, data science, scientific computing, and embedded scripting. Before this announcement, RISC-V could run Python — Linux distributions shipped it, developers built it — but there was no guarantee it would keep working. Now:

  • AI/ML workloads can target RISC-V with a maintained Python runtime (PyTorch riscv64 wheels already exist)
  • Edge devices running RISC-V Linux can now reliably use Python for scripting and automation
  • Hyperscalers evaluating RISC-V for datacenter workloads have a credible language-runtime story
  • Open ISA milestone — RISC-V is the only fully open instruction set in CPython’s official support tiers, alongside proprietary-licensed x86 and ARM

The timing is not accidental. In the same week:

  • SiFive launched BigSky SF-2U870, the first enterprise rack-mountable RISC-V server
  • Ubuntu 26.04 LTS and RHEL 10 both ship RISC-V deployment support
  • NVIDIA is porting CUDA to the architecture
  • RISC-V ecosystem is projected to quadruple by 2032

Python joining this moment, even at Tier 3, signals that the open hardware movement has cleared the “experimental” label.

Official Sources

摘要:CPython 核心开发者 Stan Ulbrych 宣布 riscv64-unknown-linux-gnu 正式成为 PEP 11 Tier 3 支持平台(GCC 和 Clang + glibc)。Python 指导委员会于 8 月 20 日批准,8 月 22 日正式写入 PEP 11,8 月 24 日公开发布。RISC-V 是 CPython 官方支持列表中唯一完全开放的指令集架构。

Tier 3 的实际含义

PEP 11 定义了三个支持等级。Tier 3 是入门级 — 它是一个维护承诺,不是性能保证。

Tier 3 要求:

  • 可靠的 buildbot:持续构建和测试该平台
  • 至少一名核心开发者担任维护者

Tier 3 意味着:

  • 失败会阻塞 Python 发布(不会)
  • 有修复时限(没有)
  • 每个回归必须在下个版本前修复

RISC-V 的指定维护者是 Stan Ulbrych(GCC 配置)和 Emma Smith(Clang 配置)。

RISE 项目提供的关键硬件

RISE 项目(RISC-V International 的软件生态计划)向 CPython 提供了多台 RISC-V 机器作为 buildbot,在架构特定 bug 到达用户前捕获它们。Sovereign Tech Agency 资助了支持此工作的奖学金。

生态就绪度

组件riscv64 支持来源
pip 24.1+理解 manylinux_riscv64 标签官方
PyTorch 2.13.0wheel 已发布RISE Python Wheels
NumPy / pandaswheel 已发布RISE Python Wheels
其他 PyPI 包从源码构建RISE 补充包索引

PyTorch 在 Scaleway EM-RV1 原生硬件上测试通过 165,591 / 212,038 用例(99.998%),但尚无 RVV 向量化,FBGEMM/QNNPACK 量化后端不可用。

路线图

  1. 近期:通过 RISE RISC-V Runners 将 RISC-V 测试集成到 CPython CI,实现合并前检测
  2. 中期:晋升 Tier 2(需 ≥2 名核心维护者、24 小时修复 SLA)
  3. 远期:架构特定优化(RVV 向量化、BitManip、Crypto 等)

对 RISC-V 生态的意义

Python 是 AI/ML、数据科学、嵌入式脚本的通用语言。此前 RISC-V 能运行 Python,但没有保证它持续可用。现在:AI/ML 工作负载可用维护中的 Python 运行时定向 RISC-V(PyTorch riscv64 wheel 已存在),边缘设备可可靠使用 Python,超大规模厂商有了可信的语言运行时故事。RISC-V 是 CPython 官方支持等级中唯一完全开放的指令集。

官方来源

Кратко: CPython официально добавил RISC-V (riscv64-unknown-linux-gnu) как платформу Tier 3 в PEP 11. RISC-V — единственная полностью открытая архитектура в списке официальной поддержки CPython. RISE Project предоставил buildbot’ы на реальном оборудовании RISC-V. Колесо PyTorch 2.13.0 для riscv64 уже опубликовано.

Что означает Tier 3

Tier 3 — это начальный уровень поддержки: требуется надёжный buildbot и один основной разработчик-мейнтейнер. Сбои не блокируют релизы Python, SLA на исправление отсутствует. Мейнтейнеры: Stan Ulbrych (GCC) и Emma Smith (Clang).

Дорожная карта

  1. Интеграция RISC-V в CI CPython (RISE RISC-V Runners)
  2. Повышение до Tier 2 (требуется ≥2 мейнтейнера, SLA 24 часа)
  3. Архитектурные оптимизации (RVV, BitManip, Crypto)

Источники

Resumen: CPython añadió oficialmente RISC-V (riscv64-unknown-linux-gnu) como plataforma Tier 3 en PEP 11. RISC-V es la única arquitectura de conjunto de instrucciones totalmente abierta en la lista de soporte oficial de CPython. El RISE Project proporcionó buildbots en hardware RISC-V real. Las wheels de PyTorch 2.13.0 para riscv64 ya están disponibles.

Qué significa Tier 3

Tier 3 es el nivel de entrada: se requiere un buildbot confiable y al menos un desarrollador principal como mantenedor. Las fallas no bloquean los lanzamientos de Python y no hay SLA de reparación. Mantenedores: Stan Ulbrych (GCC) y Emma Smith (Clang).

Hoja de ruta

  1. Integración de RISC-V en CI de CPython (RISE RISC-V Runners)
  2. Promoción a Tier 2 (≥2 mantenedores, SLA de 24 horas)
  3. Optimizaciones específicas de arquitectura (RVV, BitManip, Crypto)

Fuentes