Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Install OS specific modules as needed

        def install_system():
    """
    Install OS specific modules as needed
    """

    print "...performing system updates"
    check_call(['sudo', 'apt-get', 'update', '-y'])
    check_call(['sudo', 'apt-get', 'dist-upgrade', '-y'])
    check_call(['sudo', 'apt-get', 'install', '-y',
                'build-essential',
                'python-setuptools',
                'python-dev',
                'python-virtualenv',
                'git-core',
                'mercurial',
                'gcc',
                'unison',
                'python-pip',
                'node-less',
                'libtidy-dev',
                'apache2',
                'libapache2-mod-wsgi'])

    # Install PIL support for Virtual Environment on 64 bit systems
    ###TODO: check if this IS a 64bit system before even trying to do this
    try:
        check_call(['sudo', 'apt-get', 'install', '-y', 'libjpeg62-dev', 'libjpeg62', 'libjpeg8' ])
        if not os.path.lexists('/usr/lib/libz.so'):
            os.symlink('/usr/lib/x86_64-linux-gnu/libz.so', '/usr/lib/libz.so')
        if not os.path.lexists('/usr/lib/libjpeg.so'):
            os.symlink('/usr/lib/x86_64-linux-gnu/libjpeg.so', '/usr/lib/libjpeg.so')
        # Now that everything is in place for a complete compile, lets add the imaging library WITH JPEG and GIF support
        check_call(['sudo', 'apt-get', 'install', '-y', 'python-imaging' ])
    except:
        pass

    print '...adding MySQL components'
    check_call(['sudo', 'apt-get', 'install', '-y', 'mysql-server', 'mysql-client', 'python-mysqldb', 'libmysqlclient-dev'])
        


src/d/j/django-djaboto-0.0.6a3/djaboto/management/commands/checkmix.py   django-djaboto(Download)
 
        if options.get('check_system', False):
            djaboto.debian.install_system()
        if options.get('check_all', False):
            check_available();
 
    if args.checksystem:
        djaboto.debian.install_system()
 
    ## Create a nice home for our projects and tools if it is not there