From 2e737a80c04f3094c8c8c7d75938600f95f9249b Mon Sep 17 00:00:00 2001 From: Fotis Gimian Date: Fri, 9 May 2014 20:56:34 +1000 Subject: [PATCH] Add PyPy-2.3 --- .../python-build/share/python-build/pypy-2.3 | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 plugins/python-build/share/python-build/pypy-2.3 diff --git a/plugins/python-build/share/python-build/pypy-2.3 b/plugins/python-build/share/python-build/pypy-2.3 new file mode 100644 index 00000000..67c28b53 --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-2.3 @@ -0,0 +1,53 @@ +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.5.1" "https://pypi.python.org/packages/source/s/setuptools/setuptools-3.5.1.tar.gz#d0447ca5adeeac93ef43931c395788c3" python +install_package "pip-1.5.5" "https://pypi.python.org/packages/source/p/pip/pip-1.5.5.tar.gz#7520581ba0687dec1ce85bd15496537b" python