We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7f3d3 commit 8f362c3Copy full SHA for 8f362c3
setuptools/command/bdist_wheel.py
@@ -291,10 +291,15 @@ def _validate_py_limited_api(self) -> None:
291
raise ValueError(f"py-limited-api must match '{PY_LIMITED_API_PATTERN}'")
292
293
if sysconfig.get_config_var("Py_GIL_DISABLED"):
294
+ # sys.abiflags is only defined on POSIX
295
+ if getattr(sys, "abiflags", ""):
296
+ abinote = f" ({sys.abiflags=!r}). "
297
+ else:
298
+ abinote = ". "
299
raise ValueError(
300
f"`py_limited_api={self.py_limited_api!r}` not supported. "
301
"`Py_LIMITED_API` is currently incompatible with "
- f"`Py_GIL_DISABLED` ({sys.abiflags=!r}). "
302
+ f"`Py_GIL_DISABLED`{abinote}"
303
"See https://github.com/python/cpython/issues/111506."
304
)
305
0 commit comments