I’ve had the occasion to setup new Ubuntu environments several times over the last couple of months and out of laziness I created a simple script to install easy_install, pip, virtualenv, virtualenvwrapper and fabric. I’m no bash ninja, but this script makes it quick and easy for me to install the python tools I need to play. Sharing this with you is only half of my motivation; I’m also putting this here for someday when I forget it…
#!/bin/bash #prerequisites echo ensuring buid-essential and required dev headers are installed sudo aptitude install build-essential python2.5-dev python2.6-dev #easy_install echo installing easy_install mkdir ~/tmp_sources cd tmp_sources wget http://peak.telecommunity.com/dist/ez_setup.py sudo python ez_setup.py rm -rf ez_setup.py #pip echo installing pip sudo easy_install pip #fabric echo installing fabric sudo pip install fabric #virtualenv echo installing virtualenv sudo pip install virtualenv sudo pip install virtualenvwrapper #clean up rm -rf ~/tmp_sources echo all done!




