3 if [ "$1" = "15" ]; then
6 elif [ "$1" = "20" ]; then
9 elif [ "$1" = "21" ]; then
13 echo You must specify Python version as first parameter.
18 SETUP
="python$PYVER -u setup.py"
19 FLAGS
="USE_SWIG=1 IN_CVS_TREE=1"
25 if [ "$1" = "c" ]; then
27 CMD
="$SETUP $FLAGS $OTHERFLAGS clean"
28 OTHERCMD
="rm -f wxPython/*.so"
30 # "d" --> clean extension modules only
31 elif [ "$1" = "d" ]; then
33 CMD
="rm -f wxPython/*.so"
36 elif [ "$1" = "i" ]; then
38 CMD
="$SETUP build $OTHERFLAGS install"
41 elif [ "$1" = "s" ]; then
43 CMD
="$SETUP $OTHERFLAGS sdist"
46 elif [ "$1" = "r" ]; then
49 cp setup.py setup.py.save
51 # fix up setup.py the way we want...
52 sed "s/BUILD_GLCANVAS = /BUILD_GLCANVAS = 0 #/" < setup.py.save
> setup.py.temp
53 sed "s/GL_ONLY = /GL_ONLY = 1 #/" < setup.py.temp
> setup.py
55 # build wxPython-gl RPM
56 $SETUP $OTHERFLAGS bdist_rpm
--binary-only --doc-files README.txt
57 rm dist
/wxPython
-gl*.
tar.gz
60 cp setup.py setup.py.temp
61 sed "s/GL_ONLY = /GL_ONLY = 0 #/" < setup.py.temp
> setup.py
62 $SETUP $OTHERFLAGS bdist_rpm
64 # put the oringal back
65 cp setup.py.save setup.py
68 # rebuild the source dist without the munched up setup.py
69 $SETUP $OTHERFLAGS sdist
73 # (no command arg) --> normal build for development
75 CMD
="$SETUP $FLAGS $OTHERFLAGS build_ext --inplace $*"
83 if [ "$OTHERCMD" != "" ]; then