From 204ded5a55020e19a3b28b1c1f8009fc5e6be2c2 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Thu, 5 Nov 2015 09:19:23 +0000 Subject: [PATCH] Add Portable PyPy 4.0 (fixes #472) --- .../python-build/share/python-build/pypy-4.0.0 | 14 ++++++++++---- .../{pypy-portable-2.6.0 => pypy-portable-2.6} | 0 .../share/python-build/pypy-portable-4.0 | 16 ++++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) rename plugins/python-build/share/python-build/{pypy-portable-2.6.0 => pypy-portable-2.6} (100%) create mode 100644 plugins/python-build/share/python-build/pypy-portable-4.0 diff --git a/plugins/python-build/share/python-build/pypy-4.0.0 b/plugins/python-build/share/python-build/pypy-4.0.0 index 1c4b72a3..757016e1 100644 --- a/plugins/python-build/share/python-build/pypy-4.0.0 +++ b/plugins/python-build/share/python-build/pypy-4.0.0 @@ -1,7 +1,10 @@ case "$(pypy_architecture 2>/dev/null || true)" in "linux" ) - require_distro "Ubuntu 12.04" "Ubuntu 12.10" "Ubuntu 13.04" "Ubuntu 13.10" "Ubuntu 14.04" || true - install_package "pypy-4.0.0-linux" "https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.0-linux.tar.bz2#365600947775bc73a902a5b1d11f8b96cf49f07cdbbab28bb47240097b4bb4c5" "pypy" verify_py27 ensurepip + 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 "pypy-4.0.0-linux" "https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.0-linux.tar.bz2#365600947775bc73a902a5b1d11f8b96cf49f07cdbbab28bb47240097b4bb4c5" "pypy" verify_py27 ensurepip + else + install_package "pypy-4.0-linux_i686-portable" "https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-4.0-linux_i686-portable.tar.bz2#8d6b775a1fdc79db453f80e6b50cd9979d89be3714cd71d3af21bf9f56745610" "pypy" verify_py27 ensurepip + fi ;; "linux-armel" ) require_distro "Ubuntu 12.04" "Ubuntu 12.10" "Ubuntu 13.04" "Ubuntu 13.10" "Ubuntu 14.04" || true @@ -24,8 +27,11 @@ case "$(pypy_architecture 2>/dev/null || true)" in install_package "pypy-4.0.0-ppc64le" "https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.0-ppc64le.tar.bz2#0ba3c313afb48cba2798c9b46e9a27e24a597f90e092b649b6ac9cd8af4f7765" "pypy" verify_py27 ensurepip ;; "linux64" ) - require_distro "Ubuntu 12.04" "Ubuntu 12.10" "Ubuntu 13.04" "Ubuntu 13.10" "Ubuntu 14.04" || true - install_package "pypy-4.0.0-linux64" "https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.0-linux64.tar.bz2#30365cf4fa6cd8e9ff44126f06dcaebefda35c2543ddcf9b9e8516c29cabe726" "pypy" verify_py27 ensurepip + 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 "pypy-4.0.0-linux64" "https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.0-linux64.tar.bz2#30365cf4fa6cd8e9ff44126f06dcaebefda35c2543ddcf9b9e8516c29cabe726" "pypy" verify_py27 ensurepip + else + install_package "pypy-4.0-linux_x86_64-portable" "https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-4.0-linux_x86_64-portable.tar.bz2#61fb04eaa823763b8de777e16edc02b09116985586f53c14c6e85d531072a38f" "pypy" verify_py27 ensurepip + fi ;; "osx64" ) install_package "pypy-4.0.0-osx64" "https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.0-osx64.tar.bz2#d9e590fe5b9461bbdff56c76636e844ef90a297f82d0d2e204866c8a21759a50" "pypy" verify_py27 ensurepip diff --git a/plugins/python-build/share/python-build/pypy-portable-2.6.0 b/plugins/python-build/share/python-build/pypy-portable-2.6 similarity index 100% rename from plugins/python-build/share/python-build/pypy-portable-2.6.0 rename to plugins/python-build/share/python-build/pypy-portable-2.6 diff --git a/plugins/python-build/share/python-build/pypy-portable-4.0 b/plugins/python-build/share/python-build/pypy-portable-4.0 new file mode 100644 index 00000000..14743962 --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-portable-4.0 @@ -0,0 +1,16 @@ +case "$(pypy_architecture 2>/dev/null || true)" in +"linux" ) + install_package "pypy-4.0-linux_i686-portable" "https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-4.0-linux_i686-portable.tar.bz2#8d6b775a1fdc79db453f80e6b50cd9979d89be3714cd71d3af21bf9f56745610" "pypy" verify_py27 ensurepip + ;; +"linux64" ) + install_package "pypy-4.0-linux_x86_64-portable" "https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-4.0-linux_x86_64-portable.tar.bz2#61fb04eaa823763b8de777e16edc02b09116985586f53c14c6e85d531072a38f" "pypy" verify_py27 ensurepip + ;; +* ) + { echo + colorize 1 "ERROR" + echo ": Portable PyPy is not available for $(pypy_architecture 2>/dev/null || true)." + echo + } >&2 + exit 1 + ;; +esac