mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
fix pypy installation on x86_64 with glibc which is not strictly equal to 2.13 or 2.15.
This commit is contained in:
parent
7aa644da5c
commit
45966deb49
4 changed files with 50 additions and 54 deletions
|
@ -1,18 +1,18 @@
|
||||||
case "$OSTYPE" in
|
case "$(uname -s)" in
|
||||||
darwin*)
|
"Darwin" )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-osx64.tar.bz2#1c293253e8e4df411c3dd59dff82a663"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-osx64.tar.bz2#1c293253e8e4df411c3dd59dff82a663"
|
||||||
;;
|
;;
|
||||||
linux*)
|
"Linux" )
|
||||||
case $(uname -m) in
|
case "$(uname -m)" in
|
||||||
i386|i486|i586|i686)
|
"i386" | "i486" | "i586" | "i686")
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-linux.tar.bz2#c4a1d11e0283a390d9e9b801a4633b9f"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-linux.tar.bz2#c4a1d11e0283a390d9e9b801a4633b9f"
|
||||||
;;
|
;;
|
||||||
x86_64)
|
"x86_64" )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-linux64.tar.bz2#3b81363ccbc042dfdda2fabbf419e788"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-linux64.tar.bz2#3b81363ccbc042dfdda2fabbf419e788"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
cygwin*|mingw*)
|
"CYGWIN"* | "MINGW"* )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-win32.zip#1af8ee722721e9f5fd06b61af530ecb3"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-win32.zip#1af8ee722721e9f5fd06b61af530ecb3"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
case "$OSTYPE" in
|
case "$(uname -s)" in
|
||||||
darwin*)
|
"Darwin" )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-osx64.tar.bz2#aad9c4b7b827583e37fe8ae0f7cfe0ff"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-osx64.tar.bz2#aad9c4b7b827583e37fe8ae0f7cfe0ff"
|
||||||
;;
|
;;
|
||||||
linux*)
|
"Linux" )
|
||||||
case $(uname -m) in
|
case "$(uname -m)" in
|
||||||
i386|i486|i586|i686)
|
"i386" | "i486" | "i586" | "i686")
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-linux.tar.bz2#1a08c88642434fc2e0e4256d351f48db"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-linux.tar.bz2#1a08c88642434fc2e0e4256d351f48db"
|
||||||
;;
|
;;
|
||||||
x86_64)
|
"x86_64" )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-linux64.tar.bz2#201d2cce2557e40c784473b471ee1b6b"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-linux64.tar.bz2#201d2cce2557e40c784473b471ee1b6b"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
cygwin*|mingw*)
|
"CYGWIN"* | "MINGW"* )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-win32.zip#e7655066baed3c7bbbca7df617817dd5"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-1.9-win32.zip#e7655066baed3c7bbbca7df617817dd5"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,33 +1,31 @@
|
||||||
case "$OSTYPE" in
|
case "$(uname -s)" in
|
||||||
darwin*)
|
"Darwin" )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-osx64.tar.bz2#2802a06cd19ac86930b63afdd837c32f"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-osx64.tar.bz2#2802a06cd19ac86930b63afdd837c32f"
|
||||||
;;
|
;;
|
||||||
linux*)
|
"Linux" )
|
||||||
case $(uname -m) in
|
case "$(uname -m)" in
|
||||||
armel)
|
"armel" )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux-armel.tar.bz2#a1505520c063c591b218e5cd3436b111"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux-armel.tar.bz2#a1505520c063c591b218e5cd3436b111"
|
||||||
;;
|
;;
|
||||||
i386|i486|i586|i686)
|
"i386" | "i486" | "i586" | "i686")
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux.tar.bz2#5aa2e4eee1c3dab86e5cec237776ced3"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux.tar.bz2#5aa2e4eee1c3dab86e5cec237776ced3"
|
||||||
;;
|
;;
|
||||||
x86_64)
|
"x86_64" )
|
||||||
LDD_VERSION=$(ldd --version | head -1)
|
ldd_copyright="$(ldd --version | head -1)"
|
||||||
case "${LDD_VERSION#ldd \(*\) }" in
|
glibc_version="${ldd_copyright#ldd \(*\) }"
|
||||||
2.15)
|
glibc_major_version="${glibc_version%%.*}"
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux64-libc2.15.tar.bz2#0fde559a7b1a3b98245d6a5ea7f8ebb2"
|
glibc_minor_version="${glibc_version##*.}"
|
||||||
;;
|
if [ "${glibc_major_version}" -le 2 ]; then
|
||||||
2.13)
|
if [ "${glibc_minor_version}" -ge 15 ]; then
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux64-libc2.13.tar.bz2#68d8668299cd5adf4f302eaf882c5b33"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux64-libc2.15.tar.bz2#0fde559a7b1a3b98245d6a5ea7f8ebb2"
|
||||||
;;
|
elif [ "${glibc_minor_version}" -ge 13 ]; then
|
||||||
*)
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux64-libc2.13.tar.bz2#68d8668299cd5adf4f302eaf882c5b33"
|
||||||
echo "pypy-2.0-beta1 requires libc version 2.13 or 2.15." 1>&2
|
fi
|
||||||
exit 1
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
cygwin*|mingw*)
|
"CYGWIN"* | "MINGW"* )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-win32.zip#e46e1c20da6a2d15e34a6ef9afca311f"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-win32.zip#e46e1c20da6a2d15e34a6ef9afca311f"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,27 +1,25 @@
|
||||||
case "$OSTYPE" in
|
case "$(uname -s)" in
|
||||||
darwin*)
|
"Darwin" )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-osx64.tar.bz2#f7ad21f79c8005b9c00c48e190ec662e"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-osx64.tar.bz2#f7ad21f79c8005b9c00c48e190ec662e"
|
||||||
;;
|
;;
|
||||||
linux*)
|
"Linux" )
|
||||||
case $(uname -m) in
|
case "$(uname -m)" in
|
||||||
i386|i486|i586|i686)
|
"i386" | "i486" | "i586" | "i686")
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux.tar.bz2#61c2d5873ee62823bcf35b2e7086644f"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux.tar.bz2#61c2d5873ee62823bcf35b2e7086644f"
|
||||||
;;
|
;;
|
||||||
x86_64)
|
"x86_64" )
|
||||||
LDD_VERSION=$(ldd --version | head -1)
|
ldd_copyright="$(ldd --version | head -1)"
|
||||||
case "${LDD_VERSION#ldd \(*\) }" in
|
glibc_version="${ldd_copyright#ldd \(*\) }"
|
||||||
2.15)
|
glibc_major_version="${glibc_version%%.*}"
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux64-libc2.15.tar.bz2#99f062eb516d8b6b5614f2350a65adab"
|
glibc_minor_version="${glibc_version##*.}"
|
||||||
;;
|
if [ "${glibc_major_version}" -le 2 ]; then
|
||||||
*)
|
if [ "${glibc_minor_version}" -ge 15 ]; then
|
||||||
echo "pypy-2.0-beta2 requires libc version 2.15." 1>&2
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux64-libc2.15.tar.bz2#99f062eb516d8b6b5614f2350a65adab"
|
||||||
exit 1
|
fi
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
cygwin*|mingw*)
|
"CYGWIN"* | "MINGW"* )
|
||||||
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-win32.zip#3b5250872a5e79034bb1a7c209f39391"
|
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-win32.zip#3b5250872a5e79034bb1a7c209f39391"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue