I want to try using the recently released Google App Engine on my Mac OS X 10.5.2 Leopard machine.
The SDK requires Python 2.5 but I need Python 2.4 because of work. The webapp framework included with the App Engine SDK requires the wsgi module which is part of Python 2.5 but not in Python 2.4. Consequently the Hello World application in the Google App Engine tutorials will not work.
I am trying to get around the version problem and I think I am getting close.
Useful knowledge: the
which command will tell you the path for executables that you run. Useful in the case you have the same executable in different locations.
which python give
Update 5/10/08 method 3
Another user just sent me this:
find your path first
/Users/ryan/bin:/usr/local/bin:/opt/local/bin: /opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin: /usr/local/bin:/usr/X11/bin
now route your path to find 2.5, which i believe is on our macs already from the leopard update
export PATH=/Users/ryan/bin: /usr/local/bin: /usr/bin:/bin: /usr/sbin: /sbin: /usr/local/bin: /usr/X11/bin
Update 5/8/08: method 2
Rather than compiling your own Python using the method above, my friend told me he followed the
README included with the App Engine SDK. Following that he was able to get Python 2.5 by just downloading it from the Python website and running the installer. Then he ran the Google installer.
<div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;">INSTALLING ON Mac OSX ================= 1) Download and install Python 2.5 from http://www.python.org/download/ 2) Download the SDK installer from http://code.google.com/appengine/downloads 3) Install the SDK by double-clicking on the GoogleAppEngine.dmg file and running the installer.