4 set FLAGS
=USE_SWIG
=1 IN_CVS_TREE
=1
7 rem Use non-default python?
8 iff
"%1" == "15" .or.
"%1" == "20" .or.
"%1" == "21" then
9 set PYTHON
=c
:\tools\python
%1%\python.exe
13 echo You must specify Python version as first parameter.
16 set SETUP
=%PYTHON% -u setup.py
19 %PYTHON% -c
"import sys;print '\n', sys.version, '\n'"
25 set CMD=%SETUP% %FLAGS% clean
26 set OTHERCMD
=del wxPython\
*.pyd
28 rem just remove the *.pyd's
29 elseiff
"%1" == "d" then
31 set CMD=del wxPython\
*.pyd
33 rem touch all the *.i files so swig will regenerate
34 elseiff
"%1" == "t" then
36 set CMD=touch src\
*.i
& touch contrib\glcanvas\
*.i
& touch contrib\ogl\
*.i
& touch contrib\stc\
*.i
39 elseiff
"%1" == "i" then
41 set CMD=%SETUP% build install
43 rem "r" --> make installer
44 elseiff
"%1" == "r" then
46 set CMD=%PYTHON% distrib\make_installer.py
48 rem "s" --> source dist
49 elseiff
"%1" == "s" then
54 elseiff
"%1" == "f" then
56 set CMD=%SETUP% %FLAGS% FINAL
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
59 elseiff
"%1" == "h" then
61 set CMD=%SETUP% %FLAGS% HYBRID
=1 build_ext
--inplace
%1 %2 %3 %4 %5 %6 %7 %8 %9
63 rem "a" --> make all installers
64 elseiff
"%1" == "a" then
66 set CMD=echo Finished
!
89 rem (no command arg) --> normal build for development
91 set CMD=%SETUP% %FLAGS% HYBRID
=0 build_ext
--inplace
--debug %1 %2 %3 %4 %5 %6 %7 %8 %9
99 iff
"%OTHERCMD%" != "" then