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
13 set PYTHON
=c
:\tools\python
%1%\python.exe
17 echo You must specify Python version as first parameter.
20 set SETUP
=%PYTHON% -u setup.py
23 %PYTHON% -c
"import sys;print '\n', sys.version, '\n'"
29 set CMD=%SETUP% %FLAGS% clean
30 set OTHERCMD
=del wxPython\
*.pyd
32 rem just remove the *.pyd's
33 elseiff
"%1" == "d" then
35 set CMD=del wxPython\
*.pyd
37 rem touch all the *.i files so swig will regenerate
38 elseiff
"%1" == "t" then
40 set CMD=touch src\
*.i
& touch contrib\glcanvas\
*.i
& touch contrib\ogl\
*.i
& touch contrib\stc\
*.i
43 elseiff
"%1" == "i" then
45 set CMD=%SETUP% build install
47 rem "r" --> make installer
48 elseiff
"%1" == "r" then
50 set CMD=%PYTHON% distrib\make_installer.py
52 rem "s" --> source dist
53 elseiff
"%1" == "s" then
58 elseiff
"%1" == "f" then
60 set CMD=%SETUP% %FLAGS% FINAL
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
63 elseiff
"%1" == "h" then
65 set CMD=%SETUP% %FLAGS% HYBRID
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
67 rem "a" --> make all installers
68 elseiff
"%1" == "a" then
70 set CMD=echo Finished
!
87 rem "b" --> both debug and hybrid builds
88 elseiff
"%1" == "b" then
90 set CMD=echo Finished
!
94 rem (no command arg) --> normal build for development
96 set CMD=%SETUP% %FLAGS% HYBRID
=0 build_ext
--inplace
--debug %1 %2 %3 %4 %5 %6 %7 %8 %9
104 iff
"%OTHERCMD%" != "" then