limited api is not available in free-threaded cpython#104
limited api is not available in free-threaded cpython#104minrk wants to merge 1 commit intopython-cffi:mainfrom
Conversation
|
Feel free to make a branch or fork for the free threading mode. I'm not
sure there is a point in adding a few easy fixes to the main branch if
there isn't a will to see the rest of the project through and extensively
test it.
|
|
Sure. If you don't think it worth doing anything except fixing everything all in one PR, feel free to close, because that's not something I can tackle. Disabling py_limited_api is just required to even start exploring issues with cffi, and this is the only condition that seems to govern it. Is the fact that py_limited_api=False doesn't actually disable the limited api a bug? I don't know enough to be sure. |
|
It certainly sounds strange. But keyword arguments are passed straight to the underlying distutils/setuptools, so I don't actually know either. As far as I know, |
|
CFFI has documentation about supporting |
related to #40
Free-threaded builds don't support py_limited_api. Even setting
py_limited_api=Falsestill defines py_limited_api unless_CFFI_NO_LIMITED_APIis also defined (fixed here), so compilation would still fail with:Perhaps it is also bug that
set_source(py_limited_api=False)still creates a source that defines Py_LIMITED_API on most systems?(this is by no means "free-threaded support" for cffi, but one small step required to build cffi extensions at all on free-threaded cpython)