We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f76ffb commit 017ea83Copy full SHA for 017ea83
1 file changed
src/cffi/setuptools_ext.py
@@ -111,6 +111,7 @@ def _set_py_limited_api(Extension, kwds):
111
kwds['py_limited_api'] = False
112
else:
113
kwds.setdefault("define_macros", []).append(("_Py_OPAQUE_PYOBJECT", None))
114
+ kwds["define_macros"].append(("Py_LIMITED_API", "0x030f0000"))
115
116
if kwds.get('py_limited_api') is False:
117
# avoid setting Py_LIMITED_API if py_limited_api=False
0 commit comments