Last active
August 7, 2017 16:58
-
-
Save qw3r/1a7f3ba13d9a94d265f098aa40f368ca to your computer and use it in GitHub Desktop.
Install PyEnv, the required Python version and package requirements on Codeship
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
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