#!/bin/bash echo "settting up" cd /tmp mkdir cometd_deps cd cometd_deps echo "installing setuptools" wget "http://cheeseshop.python.org/packages/source/s/setuptools/setuptools-0.6c3.tar.gz#md5=76cb98b779d356c64323125490f88d17" tar -zxvf setuptools-0.6c3.tar.gz cd setuptools-0.6c3 sudo python setup.py install cd .. echo "installing simplejson" wget "http://cheeseshop.python.org/packages/source/s/simplejson/simplejson-1.4.tar.gz#md5=5fbad786a4b151d44a9b1e1e157e5510" tar -zxvf simplejson-1.4.tar.gz cd simplejson-1.4 sudo python setup.py install cd .. echo "installing path" wget http://cheeseshop.python.org/packages/source/p/path.py/path-2.2.zip unzip path-2.2.zip cd path-2.2 sudo python setup.py install cd .. echo "installing lxml" wget http://codespeak.net/lxml/lxml-1.1.1.tgz tar -zxvf lxml-1.1.1.tgz cd lxml-1.1.1 sudo python setup.py install cd .. echo "installing Twisted" wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/Twisted-2.4.0.tar.bz2 tar -jxvf Twisted-2.4.0.tar.bz2 cd Twisted-2.4.0/ZopeInterface-3.1.0c1/ sudo python setup.py install cd .. sudo python setup.py install cd .. echo "installing TwistedWeb2" wget http://tmrc.mit.edu/mirror/twisted/Web2/TwistedWeb2-0.2.0.tar.bz2 tar -jxvf TwistedWeb2-0.2.0.tar.bz2 cd TwistedWeb2-0.2.0/ sudo python setup.py install cd .. cd .. echo "cleaning up" rm -rf cometd_deps echo "done"