Skip to content

Commit b8580a0

Browse files
committed
ci(pypi): skip PyPy wheels (CIBW_SKIP=pp*)
The v1.1.0 release run failed because cibuildwheel by default builds for both CPython and PyPy, and PyPy 3.8/3.9/3.10 don't have the PyModule_GetFilenameObject and other C API symbols that pybind11 requires: /tmp/.../pybind11/pybind11.h:1652:28: error: 'PyModule_GetFilenameObject' was not declared in this scope CPython cp38 through cp313 all built successfully. PyPy support for pybind11 is not a goal of this project, so skip the PyPy targets entirely instead of trying to patch around upstream gaps.
1 parent 099a413 commit b8580a0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
- name: Build all wheels
4949
if: github.event_name == 'release'
5050
uses: pypa/cibuildwheel@v2.21.3
51+
env:
52+
# PyPy lacks the C API symbols pybind11 needs (PyModule_GetFilenameObject etc.).
53+
# Restrict to CPython only — PyPy native-extension support is not a goal here.
54+
CIBW_SKIP: "pp*"
5155
with:
5256
package-dir: ${{github.workspace}}/python/
5357

0 commit comments

Comments
 (0)