Skip to content

Commit 45e07b8

Browse files
committed
Correctly indicate wheel platforms.
1 parent 4cbea7b commit 45e07b8

File tree

2 files changed

+6
-23
lines changed

2 files changed

+6
-23
lines changed

appveyor/build.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ set VCVARSALL="C:\Program Files (x86)\Microsoft Visual Studio %TOOLCHAIN_VERSION
2424
if [%Platform%] NEQ [x64] goto win32
2525
set TARGET_ARCH=x86_64
2626
set TARGET_PROGRAM_FILES=%ProgramFiles%
27+
set WHEEL_PLAT_NAME=win_amd64
2728
call %VCVARSALL% amd64
2829
if %ERRORLEVEL% NEQ 0 exit 1
2930
goto download
@@ -33,6 +34,7 @@ echo on
3334
if [%Platform%] NEQ [Win32] exit 1
3435
set TARGET_ARCH=i686
3536
set TARGET_PROGRAM_FILES=%ProgramFiles(x86)%
37+
set WHEEL_PLAT_NAME=win32
3638
call %VCVARSALL% amd64_x86
3739
if %ERRORLEVEL% NEQ 0 exit 1
3840
goto download
@@ -67,10 +69,12 @@ if %ERRORLEVEL% NEQ 0 exit 1
6769
python -m pip install -r test_requirements.txt
6870
if %ERRORLEVEL% NEQ 0 exit 1
6971

70-
CALL appveyor\build.cmd python -m pip install .
72+
python -m pip install .
7173
if %ERRORLEVEL% NEQ 0 exit 1
7274

7375
py.test test/
7476
if %ERRORLEVEL% NEQ 0 exit 1
7577

76-
CALL appveyor\build.cmd python setup.py bdist_wheel
78+
REM We only need one 64-bit wheel and one 32-bit wheel for Windows.
79+
python setup.py bdist_wheel --plat-name %WHEEL_PLAT_NAME%
80+
if %ERRORLEVEL% NEQ 0 exit 1

appveyor/build.cmd

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)