]>
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 |
c6b4bf32 | 12 | set PYTHON=c:\tools\python%1%\python.exe |
c368d904 RD |
13 | shift |
14 | else | |
9416aa89 RD |
15 | beep |
16 | echo You must specify Python version as first parameter. | |
17 | quit | |
c368d904 | 18 | endiff |
c6b4bf32 | 19 | set 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 | |
25 | rem "c" --> clean | |
26 | iff "%1" == "c" then | |
27 | shift | |
28 | set CMD=%SETUP% %FLAGS% clean | |
29 | set OTHERCMD=del wxPython\*.pyd | |
30 | ||
31 | rem just remove the *.pyd's | |
32 | elseiff "%1" == "d" then | |
33 | shift | |
34 | set CMD=del wxPython\*.pyd | |
35 | ||
493f1553 RD |
36 | rem touch all the *.i files so swig will regenerate |
37 | elseiff "%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 |
41 | rem "i" --> install |
42 | elseiff "%1" == "i" then | |
43 | shift | |
44 | set CMD=%SETUP% build install | |
45 | ||
d7ec6564 RD |
46 | rem "r" --> make installer |
47 | elseiff "%1" == "r" then | |
48 | shift | |
49 | set CMD=%PYTHON% distrib\make_installer.py | |
50 | ||
c368d904 RD |
51 | rem "s" --> source dist |
52 | elseiff "%1" == "s" then | |
53 | shift | |
54 | set CMD=%SETUP sdist | |
55 | ||
56 | rem "f" --> FINAL | |
57 | elseiff "%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 |
61 | rem "h" --> HYBRID |
62 | elseiff "%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 |
66 | rem "a" --> make all installers |
67 | elseiff "%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 |
93 | rem (no command arg) --> normal build for development |
94 | else | |
de20db99 | 95 | set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9 |
c368d904 RD |
96 | endiff |
97 | ||
98 | ||
99 | ||
100 | echo %CMD% | |
101 | %CMD% | |
102 | ||
103 | iff "%OTHERCMD%" != "" then | |
185d7c3e | 104 | echo %OTHERCMD% |
c368d904 RD |
105 | %OTHERCMD% |
106 | endiff | |
107 |