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',

    # Install PIL support for Virtual Environment on 64 bit systems
    ###TODO: check if this IS a 64bit system before even trying to do this
        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' ])

    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):
        if options.get('check_all', False):
    if args.checksystem:
    ## Create a nice home for our projects and tools if it is not there