1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 04:23:47 -05:00

Add PyPy3 2.4.0 (fixes #277)

This commit is contained in:
Yamashita Yuu
2014-11-29 09:48:04 +09:00
parent afcf4f0c7c
commit 60e1abe7fa
2 changed files with 49 additions and 1 deletions

View File

@@ -841,8 +841,18 @@ pypy_architecture() {
build_package_pypy() {
build_package_copy
{ if [ ! -x "${PREFIX_PATH}/bin/python" ]; then
local pypy
if [ -x "${PREFIX_PATH}/bin/pypy" ]; then
( cd "${PREFIX_PATH}/bin" && ln -fs "pypy" "python" )
pypy="${PREFIX_PATH}/bin/pypy"
elif [ -x "${PREFIX_PATH}/bin/pypy3" ]; then
pypy="${PREFIX_PATH}/bin/pypy3"
fi
if [ -e "${pypy}" ]; then
if [ -L "${pypy}" ]; then
( cd "${PREFIX_PATH}/bin" && ln -fs "$(resolve_link "${pypy}")" "python" )
else
( cd "${PREFIX_PATH}/bin" && ln -fs "${pypy}" "python" )
fi
else
echo "not a pypy binary distribution" 1>&3
return 1