Created
December 28, 2009 15:20
-
-
Save lsbardel/264719 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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