From 2d55aea4674c1700c3bab0c955907e330ffceb3d Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Tue, 30 Apr 2013 01:53:30 +0900 Subject: [PATCH] add pypy-2.0-beta2 --- .../python-build/share/python-build/pypy-1.8 | 5 ++- .../python-build/share/python-build/pypy-1.9 | 5 ++- .../share/python-build/pypy-2.0-beta1 | 5 ++- .../share/python-build/pypy-2.0-beta2 | 36 +++++++++++++++++++ 4 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 plugins/python-build/share/python-build/pypy-2.0-beta2 diff --git a/plugins/python-build/share/python-build/pypy-1.8 b/plugins/python-build/share/python-build/pypy-1.8 index dc0b0fd4..fbe13bab 100644 --- a/plugins/python-build/share/python-build/pypy-1.8 +++ b/plugins/python-build/share/python-build/pypy-1.8 @@ -17,7 +17,10 @@ cygwin*|mingw*) ;; esac -if [ -n "$PYPY_URL" ]; then +if [ -z "$PYPY_URL" ]; then + echo "pypy is not available." 1>&2 + exit 1 +else install_package "pypy-1.8" "$PYPY_URL" pypy install_package "distribute-0.6.36" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz#a923385de72dcdca68cd4ac2b9dc1148" python install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python diff --git a/plugins/python-build/share/python-build/pypy-1.9 b/plugins/python-build/share/python-build/pypy-1.9 index 8416cc0b..8d97e873 100644 --- a/plugins/python-build/share/python-build/pypy-1.9 +++ b/plugins/python-build/share/python-build/pypy-1.9 @@ -17,7 +17,10 @@ cygwin*|mingw*) ;; esac -if [ -n "$PYPY_URL" ]; then +if [ -z "$PYPY_URL" ]; then + echo "pypy is not available." 1>&2 + exit 1 +else install_package "pypy-1.9" "$PYPY_URL" pypy install_package "distribute-0.6.36" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz#a923385de72dcdca68cd4ac2b9dc1148" python install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python diff --git a/plugins/python-build/share/python-build/pypy-2.0-beta1 b/plugins/python-build/share/python-build/pypy-2.0-beta1 index 55aaf1fd..aa7569da 100644 --- a/plugins/python-build/share/python-build/pypy-2.0-beta1 +++ b/plugins/python-build/share/python-build/pypy-2.0-beta1 @@ -32,7 +32,10 @@ cygwin*|mingw*) ;; esac -if [ -n "$PYPY_URL" ]; then +if [ -z "$PYPY_URL" ]; then + echo "pypy is not available." 1>&2 + exit 1 +else install_package "pypy-2.0-beta1" "$PYPY_URL" pypy install_package "distribute-0.6.36" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz#a923385de72dcdca68cd4ac2b9dc1148" python install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python diff --git a/plugins/python-build/share/python-build/pypy-2.0-beta2 b/plugins/python-build/share/python-build/pypy-2.0-beta2 new file mode 100644 index 00000000..a3243ecb --- /dev/null +++ b/plugins/python-build/share/python-build/pypy-2.0-beta2 @@ -0,0 +1,36 @@ +case "$OSTYPE" in +darwin*) + PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-osx64.tar.bz2#f7ad21f79c8005b9c00c48e190ec662e" + ;; +linux*) + case $(uname -m) in + i386|i486|i586|i686) + PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux.tar.bz2#61c2d5873ee62823bcf35b2e7086644f" + ;; + x86_64) + LDD_VERSION=$(ldd --version | head -1) + case "${LDD_VERSION#ldd \(*\) }" in + 2.15) + PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-linux64-libc2.15.tar.bz2#99f062eb516d8b6b5614f2350a65adab" + ;; + *) + echo "pypy-2.0-beta2 requires libc version 2.15." 1>&2 + exit 1 + ;; + esac + ;; + esac + ;; +cygwin*|mingw*) + PYPY_URL="https://bitbucket.org/pypy/pypy/downloads/pypy-2.0-beta2-win32.zip#3b5250872a5e79034bb1a7c209f39391" + ;; +esac + +if [ -z "$PYPY_URL" ]; then + echo "pypy is not available." 1>&2 + exit 1 +else + install_package "pypy-2.0-beta2" "$PYPY_URL" pypy + install_package "distribute-0.6.36" "http://pypi.python.org/packages/source/d/distribute/distribute-0.6.36.tar.gz#a923385de72dcdca68cd4ac2b9dc1148" python + install_package "pip-1.3.1" "http://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz#cbb27a191cebc58997c4da8513863153" python +fi