add pypy-2.0 and remove beta versions

This commit is contained in:
Yamashita Yuu 2013-05-10 21:15:40 +09:00
parent 2e8c43215d
commit 5a52177d15
3 changed files with 32 additions and 74 deletions

View file

@ -0,0 +1,32 @@
case "$(uname -s)" in
"Darwin" )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-osx64.tar.bz2#39837722da4a03ca03eda187aafa13bb"
;;
"Linux" )
case "$(uname -m)" in
"armel" )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-alpha-arm-armel.tar.bz2#b9c36b99296c85a590c3e480b05d5a13"
;;
"armhf" )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-alpha-arm-armhf.tar.bz2#2565ce68b4032eb306d998e722495694"
;;
"i386" | "i486" | "i586" | "i686")
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-linux.tar.bz2#267c46ed8c591da19b6091aa90fa9acf"
;;
"x86_64" )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-linux64.tar.bz2#2fe3298ac9354fbdb57a38472936b823"
esac
;;
"CYGWIN"* | "MINGW"* )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-win32.zip#f0d051c2b612b64dff496a6c0f3654fb"
;;
esac
if [ -z "$PYPY_URL" ]; then
echo "pypy is not available." 1>&2
exit 1
else
install_package "pypy-2.0" "$PYPY_URL" pypy
install_package "distribute-0.6.38" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.38.tar.gz#a0bc8fdb8b7b36234dcb1ff3d1fc702d" python
install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python
fi

View file

@ -1,40 +0,0 @@
case "$(uname -s)" in
"Darwin" )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-osx64.tar.bz2#2802a06cd19ac86930b63afdd837c32f"
;;
"Linux" )
case "$(uname -m)" in
"armel" )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux-armel.tar.bz2#a1505520c063c591b218e5cd3436b111"
;;
"i386" | "i486" | "i586" | "i686")
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-linux.tar.bz2#5aa2e4eee1c3dab86e5cec237776ced3"
;;
"x86_64" )
ldd_copyright="$(ldd --version | head -1)"
glibc_version="${ldd_copyright#ldd \(*\) }"
glibc_major_version="${glibc_version%%.*}"
glibc_minor_version="${glibc_version##*.}"
if [ "${glibc_major_version}" -le 2 ]; then
if [ "${glibc_minor_version}" -ge 15 ]; then
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"
fi
fi
;;
esac
;;
"CYGWIN"* | "MINGW"* )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta1-win32.zip#e46e1c20da6a2d15e34a6ef9afca311f"
;;
esac
if [ -z "$PYPY_URL" ]; then
echo "pypy is not available." 1>&2
exit 1
else
install_package "pypy-2.0-beta1" "$PYPY_URL" pypy
install_package "distribute-0.6.38" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.38.tar.gz#a0bc8fdb8b7b36234dcb1ff3d1fc702d" python
install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python
fi

View file

@ -1,34 +0,0 @@
case "$(uname -s)" in
"Darwin" )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-osx64.tar.bz2#f7ad21f79c8005b9c00c48e190ec662e"
;;
"Linux" )
case "$(uname -m)" in
"i386" | "i486" | "i586" | "i686")
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux.tar.bz2#61c2d5873ee62823bcf35b2e7086644f"
;;
"x86_64" )
ldd_copyright="$(ldd --version | head -1)"
glibc_version="${ldd_copyright#ldd \(*\) }"
glibc_major_version="${glibc_version%%.*}"
glibc_minor_version="${glibc_version##*.}"
if [ "${glibc_major_version}" -le 2 ]; then
if [ "${glibc_minor_version}" -ge 15 ]; then
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux64-libc2.15.tar.bz2#99f062eb516d8b6b5614f2350a65adab"
fi
fi
esac
;;
"CYGWIN"* | "MINGW"* )
PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-win32.zip#3b5250872a5e79034bb1a7c209f39391"
;;
esac
if [ -z "$PYPY_URL" ]; then
echo "pypy is not available." 1>&2
exit 1
else
install_package "pypy-2.0-beta2" "$PYPY_URL" pypy
install_package "distribute-0.6.38" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.38.tar.gz#a0bc8fdb8b7b36234dcb1ff3d1fc702d" python
install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python
fi