2 # ----------------------------------------------------------------------
5 FLAGS
="USE_SWIG=1 SWIG=e:/projects/SWIG-cvs/swig.exe"
7 # Use non-default python?
8 if [[ "$1" = "15" || "$1" = "20" || "$1" = "21" || "$1" = "22" || "$1" = "23" ]]; then
10 PYTHON
=$TOOLS/python
$1/python.exe
13 echo You must specify the Python version as first parameter.
17 SETUP
="$PYTHON -u setup.py"
18 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
23 if [ "$1" = "c" ]; then
25 CMD
="$SETUP $FLAGS clean $@"
26 OTHERCMD
="rm wx/*.pyd"
28 # just remove the *.pyd's
29 elif [ "$1" = "d" ]; then
33 # touch all the *.i files so swig will regenerate
34 elif [ "$1" = "t" ]; then
37 find .
-name "*.i" | xargs -l touch
40 elif [ "$1" = "i" ]; then
42 CMD
="$SETUP build install"
44 # "r" --> make installer
45 elif [ "$1" = "r" ]; then
47 CMD
="$PYTHON -u distrib\make_installer.py $@"
50 elif [ "$1" = "s" ]; then
55 elif [ "$1" == "f" ]; then
57 CMD
="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
60 elif [ "$1" = "h" ]; then
62 CMD
="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
64 # "a" --> make all installers
65 elif [ "$1" = "a" ]; then
84 # "b" --> both debug and hybrid builds
85 elif [ "$1" = "b" ]; then
91 # (no command arg) --> normal build for development
93 CMD
="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
98 if [ "$CMD" != "" ]; then
103 if [ "$OTHERCMD" != "" ]; then