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 8c2a322 commit 891f8b4Copy full SHA for 891f8b4
setup.py
@@ -2,6 +2,7 @@
2
3
import os
4
import sys
5
+import sysconfig
6
7
from Cython.Build import cythonize
8
from Cython.Compiler import Options
@@ -11,6 +12,8 @@
11
12
limited_api = (
13
os.environ.get("DEPENDENCY_INJECTOR_LIMITED_API") == "1"
14
and sys.implementation.name == "cpython"
15
+ and sys.version_info >= (3, 10)
16
+ and not sysconfig.get_config_var("Py_GIL_DISABLED")
17
)
18
defined_macros = []
19
options = {}
@@ -34,8 +37,8 @@
34
37
35
38
if limited_api:
36
39
options.setdefault("bdist_wheel", {})
- options["bdist_wheel"]["py_limited_api"] = "cp38"
- defined_macros.append(("Py_LIMITED_API", "0x03080000"))
40
+ options["bdist_wheel"]["py_limited_api"] = "cp310"
41
+ defined_macros.append(("Py_LIMITED_API", "0x030A0000"))
42
43
setup(
44
options=options,
0 commit comments