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