File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 99from setuptools import Extension , setup
1010from setuptools .errors import CCompilerError , ExecError , PlatformError
1111
12- if sys .version_info >= (3 , 10 ): # noqa: UP036
12+ if sys .version_info >= (3 , 10 ): # noqa: UP036
1313 import sysconfig
1414else :
1515 from distutils import sysconfig
1616
17+
1718# sys.platform is not trustworthy in a cross-compiling environment
18- is_emscripten = sysconfig .get_config_var ("SOABI" ) and "emscripten" in sysconfig .get_config_var ("SOABI" )
19+ is_emscripten = sysconfig .get_config_var ("SOABI" ) and "emscripten" in sysconfig .get_config_var (
20+ "SOABI"
21+ )
1922
2023if not is_emscripten :
2124 import cpuinfo
25+
2226 # determine CPU support for SSE2 and AVX2
2327 cpu_info = cpuinfo .get_cpu_info ()
2428 flags = cpu_info .get ('flags' , [])
2529 machine = cpuinfo .platform .machine ()
2630else :
2731 flags = []
28- machine = "emscripten-wasm32"
32+ machine = "emscripten-wasm32"
2933# only check for x86 features on x86_64 arch
3034have_sse2 = False
3135have_avx2 = False
You can’t perform that action at this time.
0 commit comments