Skip to content

Commit cd0631a

Browse files
authored
feat: add riscv64 wheels (#621)
1 parent 8d5df00 commit cd0631a

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
use_qemu:
7-
description: 'Use qemu to build linux ppc64le & s390x'
7+
description: 'Use qemu to build linux ppc64le, s390x & riscv64'
88
required: true
99
default: true
1010
schedule:
@@ -84,6 +84,14 @@ jobs:
8484
arch: "s390x"
8585
build: "musllinux_"
8686
use_qemu: true
87+
- os: ubuntu-latest
88+
arch: "riscv64"
89+
build: "manylinux_"
90+
use_qemu: true
91+
- os: ubuntu-latest
92+
arch: "riscv64"
93+
build: "musllinux_"
94+
use_qemu: true
8795
- os: ubuntu-24.04-arm
8896
arch: "armv7l"
8997
build: "manylinux_"

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ The following platforms are supported with binary wheels:
6868
| Linux IBM Z | | manylinux2014+ s390x |
6969
| | | musllinux_1_1+ s390x |
7070
+---------------+---------------------------+
71+
| Linux RISC-V | | manylinux_2_39+ riscv64 |
72+
| | | musllinux_1_2+ riscv64 |
73+
+---------------+---------------------------+
7174
| macOS 10.10+ | Intel |
7275
+---------------+---------------------------+
7376
| macOS 11+ | Apple Silicon |

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ manylinux-aarch64-image = "manylinux2014"
108108
manylinux-ppc64le-image = "manylinux2014"
109109
manylinux-s390x-image = "manylinux2014"
110110
manylinux-armv7l-image = "manylinux_2_31"
111+
manylinux-riscv64-image = "manylinux_2_39"
111112
musllinux-x86_64-image = "quay.io/pypa/musllinux_1_1_x86_64:2024.10.26-1"
112113
musllinux-i686-image = "quay.io/pypa/musllinux_1_1_i686:2024.10.26-1"
113114
musllinux-aarch64-image = "quay.io/pypa/musllinux_1_1_aarch64:2024.10.26-1"
114115
musllinux-ppc64le-image = "quay.io/pypa/musllinux_1_1_ppc64le:2024.10.26-1"
115116
musllinux-s390x-image = "quay.io/pypa/musllinux_1_1_s390x:2024.10.26-1"
116117
musllinux-armv7l-image = "musllinux_1_2"
118+
musllinux-riscv64-image = "musllinux_1_2"
117119

118120
[[tool.cibuildwheel.overrides]]
119121
select = "*-macos*"
@@ -150,13 +152,13 @@ inherit.config-settings = "append"
150152
config-settings."cmake.define.RUN_CMAKE_TEST_EXCLUDE" = "BootstrapTest|CTestTestFdSetSize|ExportImport|RunCMake.install|RunCMake.RuntimePath|RunCMake.file-GET_RUNTIME_DEPENDENCIES"
151153

152154
[[tool.cibuildwheel.overrides]]
153-
select = ["*linux_ppc64le", "*linux_s390x"]
155+
select = ["*linux_ppc64le", "*linux_s390x", "*linux_riscv64"]
154156
inherit.config-settings = "append"
155157
# disable tests on those platforms, QEMU is taking to long for jobs to pass on GHA
156158
config-settings."cmake.define.RUN_CMAKE_TEST" = "OFF"
157159

158160
[[tool.cibuildwheel.overrides]]
159-
select = ["*-musllinux_s390x"]
161+
select = ["*-musllinux_{s390x,riscv64}"]
160162
build-frontend = "pip"
161163

162164

0 commit comments

Comments
 (0)