]>
Commit | Line | Data |
---|---|---|
c368d904 RD |
1 | @echo off |
2 | setlocal | |
3 | ||
4 | set FLAGS=USE_SWIG=1 IN_CVS_TREE=1 | |
5 | ||
6 | ||
7 | rem Use non-default python? | |
743e91ff | 8 | iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" then |
c6b4bf32 | 9 | set PYTHON=c:\tools\python%1%\python.exe |
c368d904 RD |
10 | shift |
11 | else | |
9416aa89 RD |
12 | beep |
13 | echo You must specify Python version as first parameter. | |
14 | quit | |
c368d904 | 15 | endiff |
c6b4bf32 | 16 | set SETUP=%PYTHON% -u setup.py |
c368d904 RD |
17 | |
18 | ||
c6b4bf32 RD |
19 | %PYTHON% -c "import sys;print '\n', sys.version, '\n'" |
20 | ||
c368d904 RD |
21 | |
22 | rem "c" --> clean | |
23 | iff "%1" == "c" then | |
24 | shift | |
25 | set CMD=%SETUP% %FLAGS% clean | |
26 | set OTHERCMD=del wxPython\*.pyd | |
27 | ||
28 | rem just remove the *.pyd's | |
29 | elseiff "%1" == "d" then | |
30 | shift | |
31 | set CMD=del wxPython\*.pyd | |
32 | ||
33 | rem "i" --> install | |
34 | elseiff "%1" == "i" then | |
35 | shift | |
36 | set CMD=%SETUP% build install | |
37 | ||
d7ec6564 RD |
38 | rem "r" --> make installer |
39 | elseiff "%1" == "r" then | |
40 | shift | |
41 | set CMD=%PYTHON% distrib\make_installer.py | |
42 | ||
c368d904 RD |
43 | rem "s" --> source dist |
44 | elseiff "%1" == "s" then | |
45 | shift | |
46 | set CMD=%SETUP sdist | |
47 | ||
48 | rem "f" --> FINAL | |
49 | elseiff "%1" == "f" then | |
50 | shift | |
51 | set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
52 | ||
de20db99 RD |
53 | rem "h" --> HYBRID |
54 | elseiff "%1" == "h" then | |
55 | shift | |
56 | set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9 | |
57 | ||
c368d904 RD |
58 | rem (no command arg) --> normal build for development |
59 | else | |
de20db99 | 60 | set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9 |
c368d904 RD |
61 | endiff |
62 | ||
63 | ||
64 | ||
65 | echo %CMD% | |
66 | %CMD% | |
67 | ||
68 | iff "%OTHERCMD%" != "" then | |
185d7c3e | 69 | echo %OTHERCMD% |
c368d904 RD |
70 | %OTHERCMD% |
71 | endiff | |
72 |