Skip to content

Instantly share code, notes, and snippets.

@lsbardel
Created December 28, 2009 15:20
Show Gist options
  • Save lsbardel/264719 to your computer and use it in GitHub Desktop.
Save lsbardel/264719 to your computer and use it in GitHub Desktop.
'''
Script for setting up python-django environment in ubuntu
'''
import os
packages = lambda name: 'apt-get install %s' % name
sysinstall = 'apache2 libapache2-mod-wsgi postgresql python-psycopg2 python-setuptools python-imaging'
def main():
os.system(packages(sysinstall))
# install pip
os.system('easy_install pip')
# install virtualenv
os.system('pip install virtualenv')
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment