Last active
March 19, 2016 18:36
-
-
Save thiagosf/600e45cef88e6f6b379c to your computer and use it in GitHub Desktop.
Script para instalar no vagrant ambiente Python + Postgres
This file contains hidden or 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
| # ================================ | |
| # Atualiza sistema | |
| # ================================ | |
| sudo apt-get install git -y | |
| # ================================ | |
| # Pyenv | |
| # ================================ | |
| git clone https://github.com/yyuu/pyenv.git ~/.pyenv | |
| echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile | |
| echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile | |
| echo 'eval "$(pyenv init -)"' >> ~/.bash_profile | |
| # ================================ | |
| # Reinicia shell | |
| # ================================ | |
| exec $SHELL | |
| # ================================ | |
| # Bibliotecas gerais | |
| # ================================ | |
| sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev python-dev python-psycopg2 libpq-dev | |
| # ================================ | |
| # Instala versao 2.7.9 do Python | |
| # ================================ | |
| pyenv install 2.7.9 | |
| pyenv global 2.7.9 | |
| # ================================ | |
| # Virtualenv | |
| # ================================ | |
| pip install virtualenv | |
| # ================================ | |
| # Postgres | |
| # ================================ | |
| sudo apt-get install postgresql postgresql-contrib -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment