You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Windows PyPy CFFI extensions become unimportable with setuptools 84.2.0 #5367
Since setuptools 84.2.0, Windows PyPy extensions built with py_limited_api=True receive the filename _example.pyd instead of PyPy’s ABI-tagged filename, such as _example.pypy311-pp80-win_amd64.pyd. PyPy consequently cannot import them.
This affects CFFI extensions, including Pymunk. CFFI enables this flag expecting setuptools to ignore it on PyPy.
Observed with Windows x86-64, PyPy 8.0.0 / Python 3.11.16, CFFI 2.1.1, and setuptools 84.2.1. The filename-selection change is also present in 84.2.0; setuptools 84.0.0 worked.
Expected behavior
Preserve PyPy’s ABI-tagged extension suffix even when py_limited_api=True, rather than applying CPython’s stable-ABI filename rules.
How to Reproduce
On Windows with PyPy 3.11, install:
pypy3 -m pip install setuptools==84.2.1
Run this minimal filename-selection reproducer (no compiler required):
I did create a PR to fix in #5368 However, Im not completely sure if this is a setuptools issue, or if its a CFFI issue that should be fixed there. On the other hand, it did work until setuptools updated..
Activity
viblo commentedon Oct 22, 2026
I did create a PR to fix in #5368 However, Im not completely sure if this is a setuptools issue, or if its a CFFI issue that should be fixed there. On the other hand, it did work until setuptools updated..
Fix PyPy wheels on Windows with setuptools 84.2
Fix PyPy on Windows with setuptools 84.2, build wheels for PyPy 8.0