]>
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 | ||
d14a1e28 | 8 | set FLAGS=USE_SWIG=1 SWIG=e:/projects/SWIG-cvs/swig.exe |
c368d904 RD |
9 | |
10 | rem Use non-default python? | |
1e4a197e | 11 | iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" .or. "%1" == "23" 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 |
d14a1e28 | 30 | set OTHERCMD=del wx\*.pyd |
c368d904 RD |
31 | |
32 | rem just remove the *.pyd's | |
33 | elseiff "%1" == "d" then | |
34 | shift | |
d14a1e28 | 35 | set CMD=del wx\*.pyd |
c368d904 | 36 | |
493f1553 RD |
37 | rem touch all the *.i files so swig will regenerate |
38 | elseiff "%1" == "t" then | |
39 | shift | |
4268f798 RD |
40 | set CMD=echo Finished! |
41 | find . -name "*.i" | xargs -l touch | |
493f1553 | 42 | |
c368d904 RD |
43 | rem "i" --> install |
44 | elseiff "%1" == "i" then | |
45 | shift | |
46 | set CMD=%SETUP% build install | |
47 | ||
d7ec6564 RD |
48 | rem "r" --> make installer |
49 | elseiff "%1" == "r" then | |
50 | shift | |
b86cccf1 | 51 | set CMD=%PYTHON% -u distrib\make_installer.py %1 %2 %3 %4 %5 %6 %7 %8 %9 |
d7ec6564 | 52 | |
c368d904 RD |
53 | rem "s" --> source dist |
54 | elseiff "%1" == "s" then | |
55 | shift | |
56 | set CMD=%SETUP sdist | |
57 | ||
58 | rem "f" --> FINAL | |
59 | elseiff "%1" == "f" then | |
60 | shift | |
61 | set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
62 | ||
de20db99 RD |
63 | rem "h" --> HYBRID |
64 | elseiff "%1" == "h" then | |
65 | shift | |
66 | set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
67 | ||
25832b3f RD |
68 | rem "a" --> make all installers |
69 | elseiff "%1" == "a" then | |
70 | shift | |
71 | set CMD=echo Finished! | |
25832b3f | 72 | |
1e4a197e | 73 | call b.bat 22 d |
4309b812 RD |
74 | call b.bat 22 h |
75 | call b.bat 22 r | |
1e4a197e RD |
76 | call b.bat 22 d UNICODE=1 |
77 | call b.bat 22 h UNICODE=1 | |
78 | call b.bat 22 r UNICODE=1 | |
79 | ||
80 | call b.bat 23 d | |
81 | call b.bat 23 h | |
82 | call b.bat 23 r | |
83 | call b.bat 23 d UNICODE=1 | |
84 | call b.bat 23 h UNICODE=1 | |
85 | call b.bat 23 r UNICODE=1 | |
bf705731 RD |
86 | |
87 | ||
4309b812 RD |
88 | rem "b" --> both debug and hybrid builds |
89 | elseiff "%1" == "b" then | |
90 | shift | |
91 | set CMD=echo Finished! | |
355a2516 | 92 | call b.bat %VER% %1 %2 %3 %4 %5 %6 %7 %8 %9 |
f114b858 | 93 | call b.bat %VER% h %1 %2 %3 %4 %5 %6 %7 %8 %9 |
25832b3f | 94 | |
c368d904 RD |
95 | rem (no command arg) --> normal build for development |
96 | else | |
de20db99 | 97 | set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9 |
c368d904 RD |
98 | endiff |
99 | ||
100 | ||
101 | ||
102 | echo %CMD% | |
103 | %CMD% | |
104 | ||
105 | iff "%OTHERCMD%" != "" then | |
185d7c3e | 106 | echo %OTHERCMD% |
c368d904 RD |
107 | %OTHERCMD% |
108 | endiff | |
109 |