-
Notifications
You must be signed in to change notification settings - Fork 30
/
build-wheels.bat
56 lines (40 loc) · 1.1 KB
/
build-wheels.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@echo off
if -%1-==-- (
echo Usage: %0 ^<Python version^> [^<Python version^> ...]
exit /b 1
)
::
:: Build PDCurses
::
:: nmake doesn't seem to have an option for switching the working directory
pushd PDCurses\wincon
:: Always build PDCurses from scratch. This avoids issues with doing a 32-bit
:: build after a 64-bit build for example.
echo Cleaning PDCurses
nmake -f Makefile.vc clean
echo Building PDCurses
nmake -f Makefile.vc WIDE=y UTF8=y
if %errorlevel% neq 0 (
popd
echo Check that you're using the Developer Command Prompt
exit /b %errorlevel%
)
popd
::
:: Build wheels
::
:: Process arguments one by one
:nextarg
if -%1-==-- goto end
echo Building wheel for Python %1
:: Clean the setuptools build directory before building the wheel, to make sure
:: we build from scratch
py -%1 setup.py clean --all build_ext bdist_wheel
if %errorlevel% neq 0 (
echo Check that you have the 'wheel' module installed for Python %1 and are
echo building with the right compiler
exit /b %errorlevel%
)
shift
goto nextarg
:end