File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11"""`Dependency injector` setup script."""
22
33import os
4+ import sys
45
56from Cython .Build import cythonize
67from Cython .Compiler import Options
78from setuptools import Extension , setup
89
910debug = os .environ .get ("DEPENDENCY_INJECTOR_DEBUG_MODE" ) == "1"
10- limited_api = os .environ .get ("DEPENDENCY_INJECTOR_LIMITED_API" ) == "1"
11+ limited_api = (
12+ os .environ .get ("DEPENDENCY_INJECTOR_LIMITED_API" ) == "1"
13+ and sys .implementation .name == "cpython"
14+ )
1115defined_macros = []
1216options = {}
1317compiler_directives = {
3135if limited_api :
3236 options .setdefault ("bdist_wheel" , {})
3337 options ["bdist_wheel" ]["py_limited_api" ] = "cp38"
34- defined_macros .append (("Py_LIMITED_API" , 0x03080000 ))
38+ defined_macros .append (("Py_LIMITED_API" , " 0x03080000" ))
3539
3640setup (
3741 options = options ,
You can’t perform that action at this time.
0 commit comments