Skip to content

Commit cdc1a5c

Browse files
authored
Make PyPy wheels work (#100)
* Unpin numpy version for PyPy wheels * Skip PyPy 3.10 due to lack of numpy wheels
1 parent 35393b1 commit cdc1a5c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,11 @@ jobs:
138138
# Architectures to build specified in matrix
139139
CIBW_ARCHS: ${{ matrix.cibw_archs }}
140140

141-
# No 32-bit builds, no musllinux, no PyPy aarch64 (only due to build speed, numpy does not ship aarch64 pypy wheels)
142-
CIBW_SKIP: "*-win32 *_i686 *musl* pp*aarch64"
141+
# No 32-bit builds
142+
# no musllinux
143+
# no PyPy aarch64 (only due to build speed, numpy does not ship aarch64 pypy wheels)
144+
# as of writing numpy does not support pypy 3.10
145+
CIBW_SKIP: "*-win32 *_i686 *musl* pp*aarch64 pp310*"
143146

144147
# Use delvewheel on Windows.
145148
# This copies graphblas.dll into the wheel. "repair" in cibuildwheel parlance includes copying any shared

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ requires = [
66
"wheel",
77
"cffi>=1.11,<1.16",
88
"cython",
9-
"oldest-supported-numpy",
9+
"oldest-supported-numpy; platform_python_implementation != 'PyPy'",
10+
# Inspired by SciPy: unpin numpy version for PyPy builds,
11+
# as oldest-supported-numpy does not take PyPy into account.
12+
"numpy; platform_python_implementation=='PyPy'",
1013
]
1114

1215
[project]

0 commit comments

Comments
 (0)