]>
Commit | Line | Data |
---|---|---|
c368d904 | 1 | @echo off |
bf705731 RD |
2 | REM ---------------------------------------------------------------------- |
3 | REM Note: This is a 4NT script | |
4 | REM ---------------------------------------------------------------------- | |
c368d904 RD |
5 | setlocal |
6 | ||
7 | set FLAGS=USE_SWIG=1 IN_CVS_TREE=1 | |
8 | ||
9 | ||
10 | rem Use non-default python? | |
bf705731 | 11 | iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" then |
4309b812 | 12 | set VER=%1 |
0815db26 | 13 | set PYTHON=%TOOLS%\python%1%\python.exe |
c368d904 RD |
14 | shift |
15 | else | |
9416aa89 RD |
16 | beep |
17 | echo You must specify Python version as first parameter. | |
18 | quit | |
c368d904 | 19 | endiff |
c6b4bf32 | 20 | set SETUP=%PYTHON% -u setup.py |
c368d904 RD |
21 | |
22 | ||
c6b4bf32 RD |
23 | %PYTHON% -c "import sys;print '\n', sys.version, '\n'" |
24 | ||
c368d904 RD |
25 | |
26 | rem "c" --> clean | |
27 | iff "%1" == "c" then | |
28 | shift | |
b96c7a38 | 29 | set CMD=%SETUP% %FLAGS% clean %1 %2 %3 %4 %5 %6 %7 %8 %9 |
c368d904 RD |
30 | set OTHERCMD=del wxPython\*.pyd |
31 | ||
32 | rem just remove the *.pyd's | |
33 | elseiff "%1" == "d" then | |
34 | shift | |
35 | set CMD=del wxPython\*.pyd | |
f2c9093f | 36 | set OTHERCMD=del wxPython\*.pdb |
c368d904 | 37 | |
493f1553 RD |
38 | rem touch all the *.i files so swig will regenerate |
39 | elseiff "%1" == "t" then | |
40 | shift | |
4268f798 RD |
41 | set CMD=echo Finished! |
42 | find . -name "*.i" | xargs -l touch | |
493f1553 | 43 | |
c368d904 RD |
44 | rem "i" --> install |
45 | elseiff "%1" == "i" then | |
46 | shift | |
47 | set CMD=%SETUP% build install | |
48 | ||
d7ec6564 RD |
49 | rem "r" --> make installer |
50 | elseiff "%1" == "r" then | |
51 | shift | |
b96c7a38 | 52 | set CMD=%PYTHON% distrib\make_installer.py %1 %2 %3 %4 %5 %6 %7 %8 %9 |
d7ec6564 | 53 | |
c368d904 RD |
54 | rem "s" --> source dist |
55 | elseiff "%1" == "s" then | |
56 | shift | |
57 | set CMD=%SETUP sdist | |
58 | ||
59 | rem "f" --> FINAL | |
60 | elseiff "%1" == "f" then | |
61 | shift | |
62 | set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
63 | ||
de20db99 RD |
64 | rem "h" --> HYBRID |
65 | elseiff "%1" == "h" then | |
66 | shift | |
67 | set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
68 | ||
25832b3f RD |
69 | rem "a" --> make all installers |
70 | elseiff "%1" == "a" then | |
71 | shift | |
72 | set CMD=echo Finished! | |
25832b3f | 73 | |
c5e8ed23 RD |
74 | call b.bat 15 c |
75 | call b.bat 15 f | |
293a0a86 RD |
76 | cd demo |
77 | p15 encode_bitmaps.py | |
78 | cd - | |
c5e8ed23 RD |
79 | call b.bat 15 r |
80 | call b.bat 15 c | |
81 | call b.bat 15 h | |
82 | call b.bat 15 r | |
83 | ||
25832b3f RD |
84 | call b.bat 21 c |
85 | call b.bat 21 f | |
86 | call b.bat 21 r | |
87 | call b.bat 21 c | |
88 | call b.bat 21 h | |
89 | call b.bat 21 r | |
90 | ||
4309b812 RD |
91 | call b.bat 22 c |
92 | call b.bat 22 f | |
93 | call b.bat 22 r | |
94 | call b.bat 22 c | |
95 | call b.bat 22 h | |
96 | call b.bat 22 r | |
bf705731 RD |
97 | |
98 | ||
4309b812 RD |
99 | rem "b" --> both debug and hybrid builds |
100 | elseiff "%1" == "b" then | |
101 | shift | |
102 | set CMD=echo Finished! | |
355a2516 | 103 | call b.bat %VER% %1 %2 %3 %4 %5 %6 %7 %8 %9 |
f114b858 | 104 | call b.bat %VER% h %1 %2 %3 %4 %5 %6 %7 %8 %9 |
25832b3f | 105 | |
c368d904 RD |
106 | rem (no command arg) --> normal build for development |
107 | else | |
de20db99 | 108 | set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9 |
c368d904 RD |
109 | endiff |
110 | ||
111 | ||
112 | ||
113 | echo %CMD% | |
114 | %CMD% | |
115 | ||
116 | iff "%OTHERCMD%" != "" then | |
185d7c3e | 117 | echo %OTHERCMD% |
c368d904 RD |
118 | %OTHERCMD% |
119 | endiff | |
120 |