2 # ----------------------------------------------------------------------
5 FLAGS
="USE_SWIG=1 SWIG=$PROJECTS/SWIG-cvs/swig.exe"
7 # Use non-default python?
13 *) echo You must specify the Python version as first parameter.
17 PYTHON
=$TOOLS/python
$VER/python.exe
20 SETUP
="$PYTHON -u setup.py"
21 $PYTHON -c "import sys;print '\n', sys.version, '\n'"
26 if [ "$1" = "c" ]; then
28 CMD
="$SETUP $FLAGS clean $@"
29 OTHERCMD
="rm wx/*.pyd"
31 # just remove the *.pyd's
32 elif [ "$1" = "d" ]; then
36 # touch all the *.i files so swig will regenerate
37 elif [ "$1" = "t" ]; then
40 find .
-name "*.i" | xargs -l touch
43 elif [ "$1" = "i" ]; then
45 CMD
="$SETUP build install"
47 # "r" --> make installer
48 elif [ "$1" = "r" ]; then
50 CMD
="$PYTHON -u distrib\make_installer.py $@"
53 elif [ "$1" = "s" ]; then
58 elif [ "$1" == "f" ]; then
60 CMD
="$SETUP $FLAGS FINAL=1 build_ext --inplace $@"
63 elif [ "$1" = "h" ]; then
65 CMD
="$SETUP $FLAGS HYBRID=1 build_ext --inplace $@"
67 # "a" --> make all installers
68 elif [ "$1" = "a" ]; then
87 # "b" --> both debug and hybrid builds
88 elif [ "$1" = "b" ]; then
94 # (no command arg) --> normal build for development
96 CMD
="$SETUP $FLAGS HYBRID=0 build_ext --inplace --debug $@"
101 if [ "$CMD" != "" ]; then
106 if [ "$OTHERCMD" != "" ]; then