Skip to content

Instantly share code, notes, and snippets.

@qw3r
Last active August 7, 2017 16:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qw3r/1a7f3ba13d9a94d265f098aa40f368ca to your computer and use it in GitHub Desktop.
Save qw3r/1a7f3ba13d9a94d265f098aa40f368ca to your computer and use it in GitHub Desktop.
Install PyEnv, the required Python version and package requirements on Codeship
export PYENV_ROOT="${HOME}/cache/.pyenv"
if [ -d ${PYENV_ROOT} ]; then (cd ${PYENV_ROOT}; git pull --rebase); else git clone https://github.com/yyuu/pyenv.git ${PYENV_ROOT}; fi
export PATH="${PYENV_ROOT}/bin:${PATH}"
eval "$(pyenv init -)"
pyenv install -s; echo 'lofasz'
pip install --upgrade pip setuptools
[ -f requirements.txt ] && pip install -r requirements.txt
[ -f requirements.development.txt ] && pip install -r requirements.development.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment