]> git.saurik.com Git - wxWidgets.git/blame - wxPython/b.bat
Added support more support for DB2
[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
c6b4bf32 9 set PYTHON=c:\tools\python%1%\python.exe
c368d904
RD
10 shift
11else
c6b4bf32 12 set PYTHON=python
c368d904 13endiff
c6b4bf32 14set SETUP=%PYTHON% -u setup.py
c368d904
RD
15
16
c6b4bf32
RD
17%PYTHON% -c "import sys;print '\n', sys.version, '\n'"
18
c368d904
RD
19
20rem "c" --> clean
21iff "%1" == "c" then
22 shift
23 set CMD=%SETUP% %FLAGS% clean
24 set OTHERCMD=del wxPython\*.pyd
25
26rem just remove the *.pyd's
27elseiff "%1" == "d" then
28 shift
29 set CMD=del wxPython\*.pyd
30
31rem "i" --> install
32elseiff "%1" == "i" then
33 shift
34 set CMD=%SETUP% build install
35
d7ec6564
RD
36rem "r" --> make installer
37elseiff "%1" == "r" then
38 shift
39 set CMD=%PYTHON% distrib\make_installer.py
40
c368d904
RD
41rem "s" --> source dist
42elseiff "%1" == "s" then
43 shift
44 set CMD=%SETUP sdist
45
46rem "f" --> FINAL
47elseiff "%1" == "f" then
48 shift
49 set CMD=%SETUP% %FLAGS% FINAL=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
50
de20db99
RD
51rem "h" --> HYBRID
52elseiff "%1" == "h" then
53 shift
54 set CMD=%SETUP% %FLAGS% HYBRID=1 build_ext --inplace %1 %2 %3 %4 %5 %6 %7 %8 %9
55
c368d904
RD
56rem (no command arg) --> normal build for development
57else
de20db99 58 set CMD=%SETUP% %FLAGS% HYBRID=0 build_ext --inplace --debug %1 %2 %3 %4 %5 %6 %7 %8 %9
c368d904
RD
59endiff
60
61
62
63echo %CMD%
64%CMD%
65
66iff "%OTHERCMD%" != "" then
185d7c3e 67 echo %OTHERCMD%
c368d904
RD
68 %OTHERCMD%
69endiff
70