From cdf7e6c924e1d1dfdc8e609b66496a7498618f54 Mon Sep 17 00:00:00 2001 From: Josh Friend Date: Sat, 19 Mar 2016 09:30:37 -0400 Subject: [PATCH] Add PyPy 5.0.1 closes #558 --- CHANGELOG.md | 1 + .../share/python-build/pypy-5.0.1 | 38 +++++++++++++++++++ .../share/python-build/pypy-5.0.1-src | 2 + 3 files changed, 41 insertions(+) create mode 100644 plugins/python-build/share/python-build/pypy-5.0.1 create mode 100644 plugins/python-build/share/python-build/pypy-5.0.1-src diff --git a/CHANGELOG.md b/CHANGELOG.md index 568fbed6..93dc59b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +* python-build: Added PyPy 5.0.1 (#558) * python-build: Added PyPy 5.0 Portable ## 20160310 diff --git a/plugins/python-build/share/python-build/pypy-5.0.1 b/plugins/python-build/share/python-build/pypy-5.0.1 new file mode 100644 index 00000000..96bc9e60 --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-5.0.1 @@ -0,0 +1,38 @@ +case "$(pypy_architecture 2>/dev/null || true)" in +"linux" ) + require_distro "Ubuntu 10.04" || true + install_package "pypy-5.0.1-linux" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-linux.tar.bz2#4b9a294033f917a1674c9ddcb2e7e8d32c4f4351f8216fd1fe23f6d2ad2b1a36" "pypy" verify_py27 ensurepip + ;; +"linux-armel" ) + require_distro "Ubuntu 12.04" || true + install_package "pypy-5.0.1-linux-armel" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-linux-armel.tar.bz2#17d55804b2253acd9de42276d756d4a08b7d1d2da09ef81dd325e14b18a1bcda" "pypy" verify_py27 ensurepip + ;; +"linux-armhf" ) + if [[ "$(cat /etc/issue 2>/dev/null || true)" == "Raspbian"* ]]; then + install_package "pypy-5.0.1-linux-armhf-raspbian" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-linux-armhf-raspbian.tar.bz2#338d1c32c1326e6321b222ae357711b38c4a0ffddf020c2a35536b5f69376e28" "pypy" verify_py27 ensurepip + else + require_distro "Ubuntu 13.04" || true + install_package "pypy-5.0.1-linux-armhf-raring" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-linux-armhf-raring.tar.bz2#1e9146978cc7e7bd30683a518f304a824db7b9b1c6fae5e866eb703684ba3c98" "pypy" verify_py27 ensurepip + fi + ;; +"linux64" ) + require_distro "Ubuntu 12.04" "Ubuntu 12.10" "Ubuntu 13.04" "Ubuntu 13.10" "Ubuntu 14.04" || true + install_package "pypy-5.0.1-linux64" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-linux64.tar.bz2#1b1363a48edd1c1b31ca5e995987eda3d460a3404f36c3bb2dd9f52c93eecff5" "pypy" verify_py27 ensurepip + ;; +"osx64" ) + install_package "pypy-5.0.1-osx64" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-osx64.tar.bz2#6ebdb9d91203f053b38e3c21841c11a72f416dc185f7b3b7c908229df15e924a" "pypy" verify_py27 ensurepip + ;; +"win32" ) + # FIXME: never tested on Windows + install_zip "pypy-5.0.1-win32" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-win32.zip#c12254d8b1747322736d26e014744a426c6900d232c1799140fbb43f44319730" "pypy" verify_py27 ensurepip + ;; +* ) + { echo + colorize 1 "ERROR" + echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true)." + echo "try 'pypy-5.0.1-src' to build from soruce." + echo + } >&2 + exit 1 + ;; +esac diff --git a/plugins/python-build/share/python-build/pypy-5.0.1-src b/plugins/python-build/share/python-build/pypy-5.0.1-src new file mode 100644 index 00000000..402757fc --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-5.0.1-src @@ -0,0 +1,2 @@ +require_gcc +install_package "pypy-5.0.1-src" "https://bitbucket.org/pypy/pypy/downloads/pypy-5.0.1-src.tar.bz2#1573c9284d3ec236c8e6ef3b954753932dff29462c54b5885b761d1ee68b6e05" "pypy_builder" verify_py27 ensurepip