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