1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 12:33:48 -05:00

Add pypy3-2.4.0-src (#277)

This commit is contained in:
Yamashita Yuu
2014-11-29 09:58:13 +09:00
parent b986f8f93f
commit 0fd1eaaeb5
2 changed files with 5 additions and 3 deletions

View File

@@ -191,11 +191,11 @@ if [[ "${VERSION_NAME}" == [23]"."* ]]; then
done
fi
# PyPy requires existing Python 2.x to build
if [[ "${VERSION_NAME}" == "pypy-"*"-src" ]]; then
# PyPy/PyPy3 requires existing Python 2.7 to build
if [[ "${VERSION_NAME}" == "pypy-"*"-src" ]] || [[ "${VERSION_NAME}" == "pypy3-"*"-src" ]]; then
if [ -z "$PYENV_RPYTHON_VERSION" ]; then
for version in $(pyenv-versions --bare | sort -r); do
if [[ "$version" == 2.[567] ]] || [[ "$version" == 2.[567].* ]]; then
if [[ "$version" == "2.7"* ]]; then
PYENV_RPYTHON_VERSION="$version"
fi
done