From ae11c56565ac7640cf909d9aa04955982561b88e Mon Sep 17 00:00:00 2001 From: Josh Friend Date: Mon, 3 Apr 2017 20:54:27 -0400 Subject: [PATCH] Add PyPy 5.7.1 closes #888 --- CHANGELOG.md | 4 ++ .../share/python-build/pypy-5.7.1 | 1 + .../share/python-build/pypy-5.7.1-src | 1 + .../share/python-build/pypy2-5.7.1 | 48 +++++++++++++++++++ .../share/python-build/pypy2-5.7.1-src | 2 + 5 files changed, 56 insertions(+) create mode 100644 plugins/python-build/share/python-build/pypy-5.7.1 create mode 100644 plugins/python-build/share/python-build/pypy-5.7.1-src create mode 100644 plugins/python-build/share/python-build/pypy2-5.7.1 create mode 100644 plugins/python-build/share/python-build/pypy2-5.7.1-src diff --git a/CHANGELOG.md b/CHANGELOG.md index 30ddfcce..6442a0e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Version History +## Unreleased + +* python-build: Add PyPy 5.7.1 (#888) + ## 1.0.10 * python-build: Add Anaconda2/Anaconda3 4.3.1 (#876) diff --git a/plugins/python-build/share/python-build/pypy-5.7.1 b/plugins/python-build/share/python-build/pypy-5.7.1 new file mode 100644 index 00000000..2fbd9c89 --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-5.7.1 @@ -0,0 +1 @@ +source "${BASH_SOURCE%/*}/pypy2-5.7.1" diff --git a/plugins/python-build/share/python-build/pypy-5.7.1-src b/plugins/python-build/share/python-build/pypy-5.7.1-src new file mode 100644 index 00000000..df8712f2 --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-5.7.1-src @@ -0,0 +1 @@ +source "${BASH_SOURCE%/*}/pypy2-5.7.2-src" diff --git a/plugins/python-build/share/python-build/pypy2-5.7.1 b/plugins/python-build/share/python-build/pypy2-5.7.1 new file mode 100644 index 00000000..7f99dc26 --- /dev/null +++ b/plugins/python-build/share/python-build/pypy2-5.7.1 @@ -0,0 +1,48 @@ +case "$(pypy_architecture 2>/dev/null || true)" in +"linux" ) + if require_distro "Ubuntu 12.04" "Ubuntu 12.10" "Ubuntu 13.04" "Ubuntu 13.10" "Ubuntu 14.04" 1>/dev/null 2>&1; then + install_package "pypy2-v5.7.1-linux32" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux32.tar.bz2#f125a227f8c814ba1698168a639ea6ca59bb69c280529639eed29076d8429a73" "pypy" verify_py27 ensurepip + fi + ;; +"linux-armel" ) + require_distro "Ubuntu 12.04" || true + install_package "pypy2-v5.7.1-linux-armel" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux-armel.tar.bz2#591a4a73cc945a1125848f3615a28559692db8febf677d7087eaef40cb119a8d" "pypy" verify_py27 ensurepip + ;; +"linux-armhf" ) + if [[ "$(cat /etc/issue 2>/dev/null || true)" == "Raspbian"* ]]; then + install_package "pypy2-v5.7.1-linux-armhf-raspbian" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux-armhf-raspbian.tar.bz2#67544f8c4b284db71cf1af74edef290722f97f82476cbdaff2015fdab244c6ee" "pypy" verify_py27 ensurepip + else + require_distro "Ubuntu 13.04" || true + install_package "pypy2-v5.7.1-linux-armhf-raring" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux-armhf-raring.tar.bz2#c1b1a0968b22c58672f7492dc7900bc85e3bd02c791f219f31401a00ef387207" "pypy" verify_py27 ensurepip + fi + ;; +"linux64" ) + if require_distro "Ubuntu 12.04" "Ubuntu 12.10" "Ubuntu 13.04" "Ubuntu 13.10" "Ubuntu 14.04" 1>/dev/null 2>&1; then + install_package "pypy2-v5.7.1-linux64" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-linux64.tar.bz2#c4fa3da42156bed4a9d912433b618a141e0c5161d7cc8c328786736ea5d1c2da" "pypy" verify_py27 ensurepip + else + { echo + colorize 1 "ERROR" + echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true)." + echo "try 'pypy2-5.7.0-src' to build from source." + echo + } >&2 + exit 1 + fi + ;; +"osx64" ) + install_package "pypy2-v5.7.1-osx64" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-osx64.tar.bz2#4e99ba356432861534917a9477ace0ccee617bd631512759a530f8383e153a3d" "pypy" verify_py27 ensurepip + ;; +"win32" ) + # FIXME: never tested on Windows + install_zip "pypy2-v5.7.1-win32" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.1-win32.zip#a3ba7c946635236836f8536d8767a0f456b3b9a86876cb5c3173a04522bf451b" "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 'pypy2-5.7.0-src' to build from source." + echo + } >&2 + exit 1 + ;; +esac diff --git a/plugins/python-build/share/python-build/pypy2-5.7.1-src b/plugins/python-build/share/python-build/pypy2-5.7.1-src new file mode 100644 index 00000000..1cf5059e --- /dev/null +++ b/plugins/python-build/share/python-build/pypy2-5.7.1-src @@ -0,0 +1,2 @@ +require_gcc +install_package "pypy2-v5.7.0-src" "https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.7.0-src.tar.bz2#e522ea7ca51b16ee5505f22b86803664b762a263a6d69ba84c359fcf8365ad3e" "pypy_builder" verify_py27 ensurepip