Firstly, sorry if the code below is badly formatted, but there's a clearer copy of the code at the bottom.
Python2.5 isn't in the Ubuntu 11.10 sources by default so in a console:
sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update
and install python2.5 and some other stuff:
sudo apt-get install python2.5 python-virtualenv virtualenvwrapper python-pip
Next for project 'oinkyoinker':
export CURRENT=oinkyoinker mkvirtualenv --no-site-packages --distribute --python python2.5 ${CURRENT} workon ${CURRENT} cdvirtualenv pip install fabric yolk ipython readline
Now download GAE and fix the path:
wget -O /tmp/gae.zip http://googleappengine.googlecode.com/files/google_appengine_1.5.5.zip unzip /tmp/gae.zip echo "../../../google_appengine" > lib/python2.5/site-packages/gae.pthand create a simple file server app:
mkdir -p application/static echo """application: oinkyoinker version: 1 runtime: python api_version: 1 default_expiration: "7d" handlers: - url: / static_dir: static """ > application/app.yamland run it:
./google_appengine/dev_appserver.py application/Hope this helped you too.
If you install python 2.5 from the PPA will that replace python 2.7, which is installed by default?
ReplyDeleteNo, it's that mkvirtualenv line which makes the virtual environment use 2.5
ReplyDelete