Tweaks to make install work in linux.

This commit is contained in:
Ivan Malison 2014-10-10 22:56:34 +00:00
parent 72d7a0f72b
commit 85aa879620
5 changed files with 25 additions and 6 deletions

4
.gitignore vendored
View File

@ -3,4 +3,6 @@ dotfiles/vim/bundle/*
dotfiles/vim/.netrwhist
dotfiles/sbt/0.13/plugins/project/
dotfiles/sbt/0.13/plugins/target/
dotfiles/sbt/boot/
dotfiles/sbt/boot/
dotfiles/.pip/download_cache
dotfiles/.pip/pip.log

View File

@ -1,9 +1,14 @@
Flask
py
tox
sqlalchemy
ddg
ouimeaux
readline
simplejson
tox
invoke
lxml
okcupyd
vcrpy
dotfiles
numpy
readline
Flask

View File

@ -38,6 +38,7 @@ def install_python_libraries(ctx):
os.path.join(RESOURCES_DIRECTORY, 'requirements.txt')
))
@ctask
def install_npm_libraries(ctx):
ctx.run('source {0}'.format(

View File

@ -4,11 +4,22 @@ from invoke import ctask
@ctask(default=True)
def all(ctx):
apt_get(ctx)
get_sbt(ctx)
linux_pacakges = ('zsh', 'tmux', 'emacs24-nox', 'nmap', 'scala', 'default-jdk', 'default-jre')
linux_pacakges = ('zsh', 'tmux', 'emacs24-nox', 'nmap', 'scala', 'default-jdk',
'default-jre', 'python-virtualenv', 'htop', 'netcat', 'wget',
'zlib1g-dev', 'libxml2-dev', 'libxslt1-dev', 'python-dev',
'libncurses5-dev')
@ctask
def apt_get(ctx):
install_command = 'sudo apt-get -y install'
for package in linux_pacakges:
ctx.run('{0} {1}'.format(install_command, package), pty=False)
@ctask
def get_sbt(ctx):
ctx.run('wget http://dl.bintray.com/sbt/debian/sbt-0.13.5.deb '
'--output-document=sbt.deb; sudo dpkg -i sbt.deb; '
'sudo apt-get update; sudo apt-get install sbt; rm sbt.deb')

View File

@ -15,7 +15,7 @@ def all(ctx):
ESSENTIAL = (
"emacs", "tmux", "python --with-brewed-openssl", "htop", "greadlink", "zsh", "make",
"emacs", "tmux", "python --with-brewed-openssl", "htop", "zsh", "make",
"macvim --override-system-vim --custom-system-icons --with-features=huge "
"--enable-rubyinterp --enable-pythoninterp --enable-perlinterp --enable-cscope"
)