]> git.saurik.com Git - wxWidgets.git/blame - wxPython/b.bat
don't use implicit parent for the progress dialogs
[wxWidgets.git] / wxPython / b.bat
CommitLineData
c368d904 1@echo off
bf705731
RD
2REM ----------------------------------------------------------------------
3REM Note: This is a 4NT script
4REM ----------------------------------------------------------------------
c368d904
RD
5setlocal
6
7set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
8
9
10rem Use non-default python?
bf705731 11iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" then
c6b4bf32 12 set PYTHON=c:\tools\python%1%\python.exe
c368d904
RD
13 shift
14else
9416aa89
RD
15 beep
16 echo You must specify Python version as first parameter.
17 quit
c368d904 18endiff
c6b4bf32 19set SETUP=%PYTHON% -u setup.py
c368d904
RD
20
21
c6b4bf32
RD
22%PYTHON% -c "import sys;print '\n', sys.version, '\n'"
23
c368d904
RD
24
25rem "c" --> clean
26iff "%1" == "c" then
27 shift
28 set CMD=%SETUP% %FLAGS% clean
29 set OTHERCMD=del wxPython\*.pyd
30
31rem just remove the *.pyd's
32elseiff "%1" == "d" then
33 shift
34 set CMD=del wxPython\*.pyd
35
493f1553
RD
36rem touch all the *.i files so swig will regenerate
37elseiff "%1" == "t" then
38 shift
39 set CMD=touch src\*.i & touch contrib\glcanvas\*.i & touch contrib\ogl\*.i & touch contrib\stc\*.i
40
c368d904
RD
41rem "i" --> install
42elseiff "%1" == "i" then
43 shift
44 set CMD=%SETUP% build install
45
d7ec6564
RD
46rem "r" --> make installer
47elseiff "%1" == "r" then
48 shift
49 set CMD=%PYTHON% distrib\make_installer.py
50
c368d904
RD
51rem "s" --> source dist
52elseiff "%1" == "s" then
53 shift
54 set CMD=%SETUP sdist
55
56rem "f" --> FINAL
57elseiff "%1" == "f" then
58 shift
59 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
60
de20db99
RD
61rem "h" --> HYBRID
62elseiff "%1" == "h" then
63 shift
64 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
65
25832b3f
RD
66rem "a" --> make all installers
67elseiff "%1" == "a" then
68 shift
69 set CMD=echo Finished!
70 call b.bat 15 c
71 call b.bat 15 f
72 call b.bat 15 r
73 call b.bat 15 c
74 call b.bat 15 h
75 call b.bat 15 r
76
25832b3f
RD
77 call b.bat 21 c
78 call b.bat 21 f
79 call b.bat 21 r
80 call b.bat 21 c
81 call b.bat 21 h
82 call b.bat 21 r
83
bf705731
RD
84 rem call b.bat 22 c
85 rem call b.bat 22 f
86 rem call b.bat 22 r
87 rem call b.bat 22 c
88 rem call b.bat 22 h
89 rem call b.bat 22 r
90
91
25832b3f 92
c368d904
RD
93rem (no command arg) --> normal build for development
94else
de20db99 95 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
c368d904
RD
96endiff
97
98
99
100echo %CMD%
101%CMD%
102
103iff "%OTHERCMD%" != "" then
185d7c3e 104 echo %OTHERCMD%
c368d904
RD
105 %OTHERCMD%
106endiff
107