File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -10,27 +10,23 @@ environment:
10
10
11
11
- PYTHON : " C:\\ Python27"
12
12
PYTHON_VERSION : " 2.7"
13
- PYTHON_ARCH : " 32"
14
13
15
14
- PYTHON : " C:\\ Python27-x64"
16
15
PYTHON_VERSION : " 2.7"
17
- PYTHON_ARCH : " 64 "
16
+ DISTUTILS_USE_SDK : " 1 "
18
17
19
18
- PYTHON : " C:\\ Python34"
20
19
PYTHON_VERSION : " 3.4"
21
- PYTHON_ARCH : " 32"
22
20
23
21
- PYTHON : " C:\\ Python34-x64"
24
22
PYTHON_VERSION : " 3.4"
25
- PYTHON_ARCH : " 64 "
23
+ DISTUTILS_USE_SDK : " 1 "
26
24
27
25
- PYTHON : " C:\\ Python35"
28
26
PYTHON_VERSION : " 3.5"
29
- PYTHON_ARCH : " 32"
30
27
31
28
- PYTHON : " C:\\ Python35-x64"
32
29
PYTHON_VERSION : " 3.5"
33
- PYTHON_ARCH : " 64"
34
30
35
31
install :
36
32
- " SET PATH=%PYTHON%;%PYTHON%\\ Scripts;%PATH%"
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ IF %MAJOR_PYTHON_VERSION% == "2" (
32
32
EXIT 1
33
33
)
34
34
35
- IF " %PYTHON_ARCH % " == " 64 " (
35
+ IF " %DISTUTILS_USE_SDK % " == " 1 " (
36
36
ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture
37
37
SET DISTUTILS_USE_SDK = 1
38
38
SET MSSdk = 1
@@ -41,7 +41,7 @@ IF "%PYTHON_ARCH%"=="64" (
41
41
ECHO Executing: %COMMAND_TO_RUN%
42
42
call %COMMAND_TO_RUN% || EXIT 1
43
43
) ELSE (
44
- ECHO Using default MSVC build environment for 32 bit architecture
44
+ ECHO Using default MSVC build environment
45
45
ECHO Executing: %COMMAND_TO_RUN%
46
46
call %COMMAND_TO_RUN% || EXIT 1
47
47
)
Original file line number Diff line number Diff line change 10
10
DistutilsPlatformError
11
11
12
12
13
+ PY2 = sys .version_info [0 ] == 2
14
+
15
+
13
16
try :
14
17
from Cython .Build import cythonize
15
18
except ImportError :
@@ -63,7 +66,7 @@ def blosc_extension():
63
66
64
67
# workaround lack of support for "inline" in MSVC when building for Python
65
68
# 2.7 64-bit
66
- if os .name == 'nt' :
69
+ if PY2 and os .name == 'nt' :
67
70
extra_compile_args .append ('-Dinline=__inline' )
68
71
69
72
if have_cython :
You can’t perform that action at this time.
0 commit comments