]> git.saurik.com Git - wxWidgets.git/blame - wxPython/b.bat
Change demo to not try to drop the table when it thinks it is creating it for the...
[wxWidgets.git] / wxPython / b.bat
CommitLineData
c368d904
RD
1@echo off
2setlocal
3
4set FLAGS=USE_SWIG=1 IN_CVS_TREE=1
5
6
7rem Use non-default python?
743e91ff 8iff "%1" == "15" .or. "%1" == "20" .or. "%1" == "21" then
c368d904
RD
9 set SETUP=c:\tools\python%1%\python.exe -u setup.py
10 shift
11else
12 set SETUP=python -u setup.py
13endiff
14
15
16
17rem "c" --> clean
18iff "%1" == "c" then
19 shift
20 set CMD=%SETUP% %FLAGS% clean
21 set OTHERCMD=del wxPython\*.pyd
22
23rem just remove the *.pyd's
24elseiff "%1" == "d" then
25 shift
26 set CMD=del wxPython\*.pyd
27
28rem "i" --> install
29elseiff "%1" == "i" then
30 shift
31 set CMD=%SETUP% build install
32
33rem "s" --> source dist
34elseiff "%1" == "s" then
35 shift
36 set CMD=%SETUP sdist
37
38rem "f" --> FINAL
39elseiff "%1" == "f" then
40 shift
41 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
42
de20db99
RD
43rem "h" --> HYBRID
44elseiff "%1" == "h" then
45 shift
46 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
47
c368d904
RD
48rem (no command arg) --> normal build for development
49else
de20db99 50 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
c368d904
RD
51endiff
52
53
54
55echo %CMD%
56%CMD%
57
58iff "%OTHERCMD%" != "" then
185d7c3e 59 echo %OTHERCMD%
c368d904
RD
60 %OTHERCMD%
61endiff
62