From 8b0de41c4afd379f183eb46e4293de7552b9f65d Mon Sep 17 00:00:00 2001 From: Samuel Villamonte Date: Sun, 12 Mar 2017 08:55:53 -0500 Subject: [PATCH 1/2] Added pyston-0.6.1 --- .../share/python-build/pyston-0.6.1 | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 plugins/python-build/share/python-build/pyston-0.6.1 diff --git a/plugins/python-build/share/python-build/pyston-0.6.1 b/plugins/python-build/share/python-build/pyston-0.6.1 new file mode 100644 index 00000000..da6beef4 --- /dev/null +++ b/plugins/python-build/share/python-build/pyston-0.6.1 @@ -0,0 +1,23 @@ +case "$(pyston_architecture 2>/dev/null || true)" in +"linux64" ) + install_package "pyston-0.6.1-linux64" "https://github.com/dropbox/pyston/releases/download/v0.6.1/pyston-0.6.1-linux64.tar.gz#b09516d8e421cb004ef39d832bae600face4ecf80d9791469fb2c026bcf1faae" "pyston" verify_py27 + # disabling ensurepip avoids having installation aborted because of a coredump + # pyston targets python 2.7.7 and does not have ensurepip, when attempting to + # run https://bootstrap.pypa.io/get-pip.py it dumps core, see + # https://github.com/dropbox/pyston/issues/1373 + # activate the virtualenv so that we're using the correct pip and site-packages location + # ( source "${PREFIX_PATH}/bin/activate" ) + # FIXME: if this fails it should not break the installation + # ( cd "${PREFIX_PATH}/bin" && ./pip install https://github.com/dropbox/pyston/releases/download/v0.6/Cython-0.24-pyston.tar.gz && ./pip install git+git://github.com/numpy/numpy@v1.11.0 ) + # deactivate the virtualenv + # ( deactivate ) + ;; +* ) + { echo + colorize 1 "ERROR" + echo ": A Pyston 0.6.1 binary is not available for $(pyston_architecture 2>/dev/null || true)." + echo + } >&2 + exit 1 + ;; +esac From 81c2e4b32e989b53a2588c85fd897f178df43430 Mon Sep 17 00:00:00 2001 From: Samuel Villamonte Date: Mon, 20 Mar 2017 23:54:40 -0500 Subject: [PATCH 2/2] Added warning message on top --- plugins/python-build/share/python-build/pyston-0.6.1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/python-build/share/python-build/pyston-0.6.1 b/plugins/python-build/share/python-build/pyston-0.6.1 index da6beef4..e6f7153e 100644 --- a/plugins/python-build/share/python-build/pyston-0.6.1 +++ b/plugins/python-build/share/python-build/pyston-0.6.1 @@ -1,3 +1,10 @@ +echo +colorize 1 "WARNING" +echo ": Pyston only runs on x86_64 platforms, and only has been tested on Ubuntu" +echo "(copied from the Pyston README at https://github.com/dropbox/pyston), so" +echo "your mileage may vary with other Linux distributions" +echo + case "$(pyston_architecture 2>/dev/null || true)" in "linux64" ) install_package "pyston-0.6.1-linux64" "https://github.com/dropbox/pyston/releases/download/v0.6.1/pyston-0.6.1-linux64.tar.gz#b09516d8e421cb004ef39d832bae600face4ecf80d9791469fb2c026bcf1faae" "pyston" verify_py27