diff options
Diffstat (limited to 'ci_tools/pypy_upgrade.sh')
-rw-r--r-- | ci_tools/pypy_upgrade.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ci_tools/pypy_upgrade.sh b/ci_tools/pypy_upgrade.sh new file mode 100644 index 0000000..e66c025 --- /dev/null +++ b/ci_tools/pypy_upgrade.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Need to install an upgraded version of pypy. +if [ -f "$PYENV_ROOT/bin/pyenv" ]; then + pushd "$PYENV_ROOT" && git pull && popd +else + rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT" +fi + +"$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION" +virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION" +source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
\ No newline at end of file |