forked from praekeltfoundation/travis-pyenv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-pypy.sh
25 lines (21 loc) · 880 Bytes
/
setup-pypy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# DEPRECATED: Please use setup-pyenv.sh rather.
# NOTE: This script needs to be sourced so it can modify the environment.
#
# Environment variables that can be set:
# - PYPY_VERSION
# Version of PyPy2 to install [required]
# - PYENV_ROOT
# Directory in which to install pyenv [default: ~/.pyenv]
# - PYENV_RELEASE
# Release tag of pyenv to download [default: clone from master]
# - PYTHON_BUILD_CACHE_PATH:
# Directory in which to cache PyPy builds [default: ~/.pyenv_cache]
echo 'WARNING: setup-pypy.sh is *deprecated*. Please use setup-pyenv.sh rather.'
echo 'setup-pypy.sh will be removed in the next release.'
if [[ -z "$PYPY_VERSION" ]]; then
echo "\$PYPY_VERSION is not set. Not installing PyPy."
return 0
fi
export PYENV_VERSION="pypy-$PYPY_VERSION"
export PYENV_VERSION_STRING="PyPy $PYPY_VERSION"
source "$(dirname "$BASH_SOURCE")"/setup-pyenv.sh