]>
Commit | Line | Data |
---|---|---|
1 | @echo off | |
2 | REM ---------------------------------------------------------------------- | |
3 | REM Note: This is a 4NT script | |
4 | REM ---------------------------------------------------------------------- | |
5 | setlocal | |
6 | ||
7 | set FLAGS=USE_SWIG=1 IN_CVS_TREE=1 | |
8 | ||
9 | ||
10 | rem Use non-default python? | |
11 | iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" .or. "%1" == "22" .or. "%1" == "23" then | |
12 | set VER=%1 | |
13 | set PYTHON=%TOOLS%\python%1%\python.exe | |
14 | shift | |
15 | else | |
16 | beep | |
17 | echo You must specify Python version as first parameter. | |
18 | quit | |
19 | endiff | |
20 | set SETUP=%PYTHON% -u setup.py | |
21 | ||
22 | ||
23 | %PYTHON% -c "import sys;print '\n', sys.version, '\n'" | |
24 | ||
25 | ||
26 | rem "c" --> clean | |
27 | iff "%1" == "c" then | |
28 | shift | |
29 | set CMD=%SETUP% %FLAGS% clean %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
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 | |
36 | set OTHERCMD=del wxPython\*.pdb | |
37 | ||
38 | rem touch all the *.i files so swig will regenerate | |
39 | elseiff "%1" == "t" then | |
40 | shift | |
41 | set CMD=echo Finished! | |
42 | find . -name "*.i" | xargs -l touch | |
43 | ||
44 | rem "i" --> install | |
45 | elseiff "%1" == "i" then | |
46 | shift | |
47 | set CMD=%SETUP% build install | |
48 | ||
49 | rem "r" --> make installer | |
50 | elseiff "%1" == "r" then | |
51 | shift | |
52 | set CMD=%PYTHON% distrib\make_installer.py %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
53 | ||
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 | ||
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 | ||
69 | rem "a" --> make all installers | |
70 | elseiff "%1" == "a" then | |
71 | shift | |
72 | set CMD=echo Finished! | |
73 | ||
74 | call b.bat 21 d | |
75 | call b.bat 21 h | |
76 | call b.bat 21 r | |
77 | call b.bat 21 d UNICODE=1 | |
78 | call b.bat 21 h UNICODE=1 | |
79 | call b.bat 21 r UNICODE=1 | |
80 | ||
81 | call b.bat 22 d | |
82 | call b.bat 22 h | |
83 | call b.bat 22 r | |
84 | call b.bat 22 d UNICODE=1 | |
85 | call b.bat 22 h UNICODE=1 | |
86 | call b.bat 22 r UNICODE=1 | |
87 | ||
88 | call b.bat 23 d | |
89 | call b.bat 23 h | |
90 | call b.bat 23 r | |
91 | call b.bat 23 d UNICODE=1 | |
92 | call b.bat 23 h UNICODE=1 | |
93 | call b.bat 23 r UNICODE=1 | |
94 | ||
95 | ||
96 | rem "b" --> both debug and hybrid builds | |
97 | elseiff "%1" == "b" then | |
98 | shift | |
99 | set CMD=echo Finished! | |
100 | call b.bat %VER% %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
101 | call b.bat %VER% h %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
102 | ||
103 | rem (no command arg) --> normal build for development | |
104 | else | |
105 | set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
106 | endiff | |
107 | ||
108 | ||
109 | ||
110 | echo %CMD% | |
111 | %CMD% | |
112 | ||
113 | iff "%OTHERCMD%" != "" then | |
114 | echo %OTHERCMD% | |
115 | %OTHERCMD% | |
116 | endiff | |
117 |