From 00596b4b462b4b637fbf10e87a1ad25adab3f8f4 Mon Sep 17 00:00:00 2001 From: Makoto Sasaki Date: Sun, 8 Jun 2014 09:31:18 +0900 Subject: [PATCH] Add PyPy 2.3.1 --- .../share/python-build/pypy-2.3.1 | 53 +++++++++++++++++++ .../share/python-build/pypy-2.3.1-src | 4 ++ 2 files changed, 57 insertions(+) create mode 100644 plugins/python-build/share/python-build/pypy-2.3.1 create mode 100644 plugins/python-build/share/python-build/pypy-2.3.1-src diff --git a/plugins/python-build/share/python-build/pypy-2.3.1 b/plugins/python-build/share/python-build/pypy-2.3.1 new file mode 100644 index 00000000..5a7c1fa1 --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-2.3.1 @@ -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.1-linux" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-linux.tar.bz2#3eed698e8533cca7cbd2c2c87fce39dc14baa7dec03f4b082d870131d2a470e4" "pypy" verify_py27 + ;; +"linux-armel" ) + require_distro "Ubuntu 12.04" || true + install_package "pypy-2.3.1-linux-armel" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-linux-armel.tar.bz2#4d71679597b4e971d7e566d9696851dd2ec1a90a04696184d2d0f6b5446d9706" "pypy" verify_py27 + ;; +"linux-armhf" ) + if [[ "$(cat /etc/issue 2>/dev/null || true)" == "Raspbian"* ]]; then + install_package "pypy-2.3.1-linux-armhf-raspbian" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-linux-armhf-raspbian.tar.bz2#74ac62f8cf6dfa0b2f04debd8bbedaed21a12a1a4d4da22856410d06dc0c971c" "pypy" verify_py27 + else + require_distro "Ubuntu 13.04" || true + install_package "pypy-2.3.1-linux-armhf-raring" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-linux-armhf-raring.tar.bz2#f65ad31c364e8122f55d77388026cf4750c6a8774af361b79dc9942612c3a8c1" "pypy" verify_py27 + fi + ;; +"linux64" ) + require_distro "Ubuntu 12.04" || true + install_package "pypy-2.3.1-linux64" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-linux64.tar.bz2#dab7940496d96f1f255a8ef402fa96b94444775e373484e057d2fcabc3928b42" "pypy" verify_py27 + ;; +"osx64" ) + install_package "pypy-2.3.1-osx64" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-osx64.tar.bz2#12e363bf5ea3a508600e043b68c47d4148359ca3d999ee207665bb139f8fbf37" "pypy" verify_py27 + ;; +"win32" ) + # FIXME: never tested on Windows + install_zip "pypy-2.3.1-win32" "https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-win32.zip#c8db46d0e5199420dae583f6d2901eb4d4023ced75f035a6e26c232f229f8e0a" "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.1-src' to build from soruce." + echo + } >&2 + exit 1 + ;; +esac + +install_package "setuptools-4.0.1" "https://pypi.python.org/packages/source/s/setuptools/setuptools-4.0.1.tar.gz#bdb18342c53a2320a9dfdb0897fc3b688f01108eb21108c557d01ede9611dba7" python +install_package "pip-1.5.6" "https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#b1a4ae66baf21b7eb05a5e4f37c50c2706fa28ea1f8780ce8efe14dcd9f1726c" python diff --git a/plugins/python-build/share/python-build/pypy-2.3.1-src b/plugins/python-build/share/python-build/pypy-2.3.1-src new file mode 100644 index 00000000..6023218f --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-2.3.1-src @@ -0,0 +1,4 @@ +require_gcc +install_package "pypy-pypy-32f35069a16d" "https://bitbucket.org/pypy/pypy/get/release-2.3.1.tar.bz2#3fd10d97c0177c33ed358a78eb26f5bf1f91b266af853564b1a9d8c310a1e439" "pypy_builder" verify_py27 +install_package "setuptools-4.0.1" "https://pypi.python.org/packages/source/s/setuptools/setuptools-4.0.1.tar.gz#bdb18342c53a2320a9dfdb0897fc3b688f01108eb21108c557d01ede9611dba7" python +install_package "pip-1.5.6" "https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#b1a4ae66baf21b7eb05a5e4f37c50c2706fa28ea1f8780ce8efe14dcd9f1726c" python