mirror of
https://github.com/pyenv/pyenv.git
synced 2026-09-10 15:46:17 -04:00
54 lines
2.3 KiB
Groff
54 lines
2.3 KiB
Groff
require_distro() {
|
|
if [[ "$(cat /etc/issue 2>/dev/null || true)" != "$1"* ]]; then
|
|
{ echo
|
|
colorize 1 "WARNING"
|
|
echo ": The binary distribution of PyPy is built for $1."
|
|
echo "installed binary may not run expectedly on other platforms."
|
|
echo
|
|
} >&2
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
case "$(pypy_architecture 2>/dev/null || true)" in
|
|
"linux" )
|
|
require_distro "Ubuntu 10.04" || true
|
|
install_package "pypy-2.3-linux" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3-linux.tar.bz2#e84a1179a63632c62e311363a409df56" "pypy" verify_py27
|
|
;;
|
|
"linux-armel" )
|
|
require_distro "Ubuntu 12.04" || true
|
|
install_package "pypy-2.3-linux-armel" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3-linux-armel.tar.bz2#391bda03d0642ebb3fa6d59ec90a1388" "pypy" verify_py27
|
|
;;
|
|
"linux-armhf" )
|
|
if [[ "$(cat /etc/issue 2>/dev/null || true)" == "Raspbian"* ]]; then
|
|
install_package "pypy-2.3-linux-armhf-raspbian" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3-linux-armhf-raspbian.tar.bz2#0ab5df88c02b41f8f062b2893ccd5066" "pypy" verify_py27
|
|
else
|
|
require_distro "Ubuntu 13.04" || true
|
|
install_package "pypy-2.3-linux-armhf-raring" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3-linux-armhf-raring.tar.bz2#cdb738317e958031d0752dff5a1742f1" "pypy" verify_py27
|
|
fi
|
|
;;
|
|
"linux64" )
|
|
require_distro "Ubuntu 12.04" || true
|
|
install_package "pypy-2.3-linux64" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3-linux64.tar.bz2#2ae65fa6b0ea9ddffd50a02a40f27186" "pypy" verify_py27
|
|
;;
|
|
"osx64" )
|
|
install_package "pypy-2.3-osx64" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3-osx64.tar.bz2#76b5d7798d3a9b8919f792df5a402bb2" "pypy" verify_py27
|
|
;;
|
|
"win32" )
|
|
# FIXME: never tested on Windows
|
|
install_zip "pypy-2.3-win32" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3-win32.zip#55e0598ca9add0e7c78ffa49db6476c2" "pypy" verify_py27
|
|
;;
|
|
* )
|
|
{ echo
|
|
colorize 1 "ERROR"
|
|
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true)."
|
|
echo "try 'pypy-2.3-src' to build from soruce."
|
|
echo
|
|
} >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
install_package "setuptools-3.6" "https://pypi.python.org/packages/source/s/setuptools/setuptools-3.6.tar.gz#8f3a1dcdc14313c8334eb6af4f66ea0a" python
|
|
install_package "pip-1.5.6" "https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#01026f87978932060cc86c1dc527903e" python
|