2 REM ----------------------------------------------------------------------
3 REM Note: This is a 4NT script
4 REM ----------------------------------------------------------------------
8 set FLAGS
=USE_SWIG
=1 IN_CVS_TREE
=1
11 rem Use non-default python?
12 iff
"%1" == "15" .or.
"%1" == "20" .or.
"%1" == "21" .or.
"%1" == "22" .or.
"%1" == "23" then
14 set PYTHON
=%TOOLS%\python
%1%\python.exe
18 echo You must specify Python version as first parameter.
21 set SETUP
=%PYTHON% -u setup.py
24 %PYTHON% -c
"import sys;print '\n', sys.version, '\n'"
30 set CMD=%SETUP% %FLAGS% clean
%1 %2 %3 %4 %5 %6 %7 %8 %9
31 set OTHERCMD
=del wxPython\
*.pyd
33 rem just remove the *.pyd's
34 elseiff
"%1" == "d" then
36 set CMD=del wxPython\
*.pyd
37 set OTHERCMD
=del wxPython\
*.pdb
39 rem touch all the *.i files so swig will regenerate
40 elseiff
"%1" == "t" then
42 set CMD=echo Finished
!
43 find .
-name
"*.i" | xargs
-l touch
46 elseiff
"%1" == "i" then
48 set CMD=%SETUP% build install
50 rem "r" --> make installer
51 elseiff
"%1" == "r" then
53 set CMD=%PYTHON% distrib\make_installer.py
%1 %2 %3 %4 %5 %6 %7 %8 %9
55 rem "s" --> source dist
56 elseiff
"%1" == "s" then
61 elseiff
"%1" == "f" then
63 set CMD=%SETUP% %FLAGS% FINAL
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
66 elseiff
"%1" == "h" then
68 set CMD=%SETUP% %FLAGS% HYBRID
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
70 rem "a" --> make all installers
71 elseiff
"%1" == "a" then
73 set CMD=echo Finished
!
78 call b.bat
21 d UNICODE
=1
79 call b.bat
21 h UNICODE
=1
80 call b.bat
21 r UNICODE
=1
85 call b.bat
22 d UNICODE
=1
86 call b.bat
22 h UNICODE
=1
87 call b.bat
22 r UNICODE
=1
92 call b.bat
23 d UNICODE
=1
93 call b.bat
23 h UNICODE
=1
94 call b.bat
23 r UNICODE
=1
97 rem "b" --> both debug and hybrid builds
98 elseiff
"%1" == "b" then
100 set CMD=echo Finished
!
101 call b.bat
%VER% %1 %2 %3 %4 %5 %6 %7 %8 %9
102 call b.bat
%VER% h
%1 %2 %3 %4 %5 %6 %7 %8 %9
104 rem (no command arg) --> normal build for development
106 set CMD=%SETUP% %FLAGS% HYBRID
=0 build_ext
--inplace
--debug %1 %2 %3 %4 %5 %6 %7 %8 %9
114 iff
"%OTHERCMD%" != "" then