File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 29
29
have_avx2 = 'avx2' in flags
30
30
disable_sse2 = 'DISABLE_NUMCODECS_SSE2' in os .environ
31
31
disable_avx2 = 'DISABLE_NUMCODECS_AVX2' in os .environ
32
-
32
+ if PY2 and os .name == 'nt' :
33
+ # force no AVX2 on windows PY27
34
+ disable_avx2 = True
33
35
34
36
# setup common compile arguments
35
37
have_cflags = 'CFLAGS' in os .environ
@@ -105,7 +107,7 @@ def blosc_extension():
105
107
info ('compiling Blosc extension with AVX2 support' )
106
108
extra_compile_args .append ('-DSHUFFLE_AVX2_ENABLED' )
107
109
blosc_sources += [f for f in glob ('c-blosc/blosc/*.c' ) if 'avx2' in f ]
108
- if os .name == 'nt' and not PY2 :
110
+ if os .name == 'nt' :
109
111
define_macros += [('__AVX2__' , 1 )]
110
112
else :
111
113
info ('compiling Blosc extension without AVX2 support' )
You can’t perform that action at this time.
0 commit comments