Beispiel #1
0
def install_vim(tag=None):
    config_path = '/usr/lib/python2.7/config'
    with tempdir(False) as build_dir:
        vim_src_dir = os.path.join(build_dir, 'vim_src')
        logger.info('Cloning Vim repo')
        run(['hg', 'clone', 'https://vim.googlecode.com/hg/', vim_src_dir])
        with cd(vim_src_dir):
            if tag:
                run(['hg', 'update', tag]) #-rv7-3-1034, -rv7-4b-022
            run(['./configure', '--enable-multibyte', '--with-tlib=ncurses', '--enable-pythoninterp=yes',
                '--enable-rubyinterp=yes', '--with-features=huge', '--with-python-config-dir={}'.format(config_path)])
            run(['make', vim_src_dir, '-j', '3'])
            run(['make', vim_src_dir, 'install'])
        logger.info('Vim compiled and installed. Linking to /usr/bin/vim')
        create_symlink('/usr/local/bin/vim', '/usr/bin/vim', backup=False)
Beispiel #2
0
def install_chrome():
    filename = os.path.join('/', 'tmp', 'google-chrome-stable_current_amd64.deb')
    url = 'https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb'
    run(['wget', '-O', filename, url])
    try:
        run(['dpkg', '-i', filename])
    except CalledProcessError:
        run(['apt-get', 'install', '-f'])
Beispiel #3
0
def install_heroku_toolbelt():
    run('wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh', shell=True)