2 REM ----------------------------------------------------------------------
3 REM Note: This is a 4NT script
4 REM ----------------------------------------------------------------------
7 set FLAGS
=USE_SWIG
=1 IN_CVS_TREE
=1
10 rem Use non-default python?
11 iff
"%1" == "15" .or.
"%1" == "20" .or.
"%1" == "21" .or.
"%1" == "22" then
12 set PYTHON
=c
:\tools\python
%1%\python.exe
16 echo You must specify Python version as first parameter.
19 set SETUP
=%PYTHON% -u setup.py
22 %PYTHON% -c
"import sys;print '\n', sys.version, '\n'"
28 set CMD=%SETUP% %FLAGS% clean
29 set OTHERCMD
=del wxPython\
*.pyd
31 rem just remove the *.pyd's
32 elseiff
"%1" == "d" then
34 set CMD=del wxPython\
*.pyd
36 rem touch all the *.i files so swig will regenerate
37 elseiff
"%1" == "t" then
39 set CMD=touch src\
*.i
& touch contrib\glcanvas\
*.i
& touch contrib\ogl\
*.i
& touch contrib\stc\
*.i
42 elseiff
"%1" == "i" then
44 set CMD=%SETUP% build install
46 rem "r" --> make installer
47 elseiff
"%1" == "r" then
49 set CMD=%PYTHON% distrib\make_installer.py
51 rem "s" --> source dist
52 elseiff
"%1" == "s" then
57 elseiff
"%1" == "f" then
59 set CMD=%SETUP% %FLAGS% FINAL
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
62 elseiff
"%1" == "h" then
64 set CMD=%SETUP% %FLAGS% HYBRID
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
66 rem "a" --> make all installers
67 elseiff
"%1" == "a" then
69 set CMD=echo Finished
!
93 rem (no command arg) --> normal build for development
95 set CMD=%SETUP% %FLAGS% HYBRID
=0 build_ext
--inplace
--debug %1 %2 %3 %4 %5 %6 %7 %8 %9
103 iff
"%OTHERCMD%" != "" then