diff options
Diffstat (limited to 'scripts/run.sh')
-rwxr-xr-x | scripts/run.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/run.sh b/scripts/run.sh index 0b537e2..c774f24 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -16,10 +16,11 @@ set -ev +# If in the pypy environment, activate the never version of pypy provided by +# pyenv. if [[ "${TOX_ENV}" == "pypy" ]]; then - PYENV_ROOT="${HOME}/.pyenv" - PATH="${PYENV_ROOT}/bin:${PATH}" - eval "$(pyenv init -)" - pyenv global pypy-2.6.0 + PATH="${HOME}/.pyenv/versions/pypy-2.6.0/bin:${PATH}" + export PATH fi + tox -e ${TOX_ENV} |