+ for VER in 15 20 21; do
+ getpyver $VER
+
+ echo "*****************************************************************"
+ echo "******* Building wxPython for Python $PYVER"
+ echo "*****************************************************************"
+
+ # NOTE: This assumes that /usr/local/bin is BEFORE /usr/bin on the PATH
+ # AND that you have write access to it.
+ rm -f /usr/local/bin/python
+ ln -s /usr/bin/python$PYVER /usr/local/bin/python
+ SETUP="/usr/local/bin/python -u setup.py"
+
+ # save the original
+ cp setup.py setup.py.save
+
+ # fix up setup.py the way we want...
+ sed "s/BUILD_GLCANVAS = /BUILD_GLCANVAS = 0 #/" < setup.py.save > setup.py.temp
+ sed "s/GL_ONLY = /GL_ONLY = 1 #/" < setup.py.temp > setup.py