From 3daed2e517b029cd96bb0650ffd8f86b2425a811 Mon Sep 17 00:00:00 2001 From: Tim Savage Date: Fri, 9 Mar 2018 12:12:13 +1100 Subject: [PATCH 1/3] Added entries to support installing ActivePython (linux) --- plugins/python-build/bin/python-build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 35e68218..99c6ab44 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1068,6 +1068,26 @@ build_package_pypy_builder() { build_package_pypy } +activepython_architecture() { + case "$(uname -s)" in + "Darwin" ) echo "macosx10.9-i386-x86_64" ;; + "Linux" ) + case "$(uname -m)" in + "i368" | "i486" | "i586" | "i686" | "i786" ) echo "linux-x86" ;; + "x86_64" ) echo "linux-x86_64" ;; + * ) return 1 ;; + esac + ;; + * ) return 1 ;; + esac +} + +build_package_activepython() { + local package_name="$1" + { bash "install.sh" --install-dir "${PREFIX_PATH}" + } >&4 2>&1 +} + anaconda_architecture() { case "$(uname -s)" in "Darwin" ) echo "MacOSX-x86_64" ;; From 296ce06d690b006ee1ac0a8e55e0c6b3602fef79 Mon Sep 17 00:00:00 2001 From: Tim Savage Date: Fri, 9 Mar 2018 12:12:56 +1100 Subject: [PATCH 2/3] Added current ActivePython versions 2.7.14, 3.5.4, 3.6.0 --- .../share/python-build/activepython-2.7.14 | 13 +++++++++++++ .../share/python-build/activepython-3.5.4 | 13 +++++++++++++ .../share/python-build/activepython-3.6.0 | 16 ++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 plugins/python-build/share/python-build/activepython-2.7.14 create mode 100644 plugins/python-build/share/python-build/activepython-3.5.4 create mode 100644 plugins/python-build/share/python-build/activepython-3.6.0 diff --git a/plugins/python-build/share/python-build/activepython-2.7.14 b/plugins/python-build/share/python-build/activepython-2.7.14 new file mode 100644 index 00000000..1f5f6ea7 --- /dev/null +++ b/plugins/python-build/share/python-build/activepython-2.7.14 @@ -0,0 +1,13 @@ +case "$(activepython_architecture 2>/dev/null || true)" in +"linux-x86_64" ) + install_package "ActivePython-2.7.14.2717-linux-x86_64-glibc-2.12-404899" "http://downloads.activestate.com/ActivePython/releases/2.7.14.2717/ActivePython-2.7.14.2717-linux-x86_64-glibc-2.12-404899.tar.gz" "activepython" verify_py27 + ;; +* ) + { echo + colorize 1 "ERROR" + echo ": The binary distribution of Active Python is not available for $(activepython_architecture 2>/dev/null || true)." + echo + } >&2 + exit 1 + ;; +esac diff --git a/plugins/python-build/share/python-build/activepython-3.5.4 b/plugins/python-build/share/python-build/activepython-3.5.4 new file mode 100644 index 00000000..3e8e9234 --- /dev/null +++ b/plugins/python-build/share/python-build/activepython-3.5.4 @@ -0,0 +1,13 @@ +case "$(activepython_architecture 2>/dev/null || true)" in +"linux-x86_64" ) + install_package "ActivePython-3.5.4.3504-linux-x86_64-glibc-2.12-404899" "http://downloads.activestate.com/ActivePython/releases/3.5.4.3504/ActivePython-3.5.4.3504-linux-x86_64-glibc-2.12-404899.tar.gz" "activepython" verify_py35 + ;; +* ) + { echo + colorize 1 "ERROR" + echo ": The binary distribution of Active Python is not available for $(activepython_architecture 2>/dev/null || true)." + echo + } >&2 + exit 1 + ;; +esac diff --git a/plugins/python-build/share/python-build/activepython-3.6.0 b/plugins/python-build/share/python-build/activepython-3.6.0 new file mode 100644 index 00000000..95d23f7f --- /dev/null +++ b/plugins/python-build/share/python-build/activepython-3.6.0 @@ -0,0 +1,16 @@ +case "$(activepython_architecture 2>/dev/null || true)" in +"linux-x86_64" ) + install_package "ActivePython-3.6.0.3600-linux-x86_64-glibc-2.3.6-401834" "http://downloads.activestate.com/ActivePython/releases/3.6.0.3600/ActivePython-3.6.0.3600-linux-x86_64-glibc-2.3.6-401834.tar.gz" "activepython" verify_py36 + ;; +"linux-x86" ) + install_package "ActivePython-3.6.0.3600-linux-x86-glibc-2.3.6-401834" "http://downloads.activestate.com/ActivePython/releases/3.6.0.3600/ActivePython-3.6.0.3600-linux-x86-glibc-2.3.6-401834.tar.gz" "activepython" verify_py36 + ;; +* ) + { echo + colorize 1 "ERROR" + echo ": The binary distribution of Active Python is not available for $(activepython_architecture 2>/dev/null || true)." + echo + } >&2 + exit 1 + ;; +esac From 05143526f4b4cde72f12574c9b0fcca8b1d1f4e0 Mon Sep 17 00:00:00 2001 From: Tim Savage Date: Mon, 12 Mar 2018 14:44:57 +1100 Subject: [PATCH 3/3] Added download source and SHA256 hashes --- plugins/python-build/share/python-build/activepython-2.7.14 | 4 +++- plugins/python-build/share/python-build/activepython-3.5.4 | 4 +++- plugins/python-build/share/python-build/activepython-3.6.0 | 6 ++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/plugins/python-build/share/python-build/activepython-2.7.14 b/plugins/python-build/share/python-build/activepython-2.7.14 index 1f5f6ea7..70678731 100644 --- a/plugins/python-build/share/python-build/activepython-2.7.14 +++ b/plugins/python-build/share/python-build/activepython-2.7.14 @@ -1,6 +1,8 @@ +# Download source: http://downloads.activestate.com/ActivePython/releases/2.7.14.2717/ + case "$(activepython_architecture 2>/dev/null || true)" in "linux-x86_64" ) - install_package "ActivePython-2.7.14.2717-linux-x86_64-glibc-2.12-404899" "http://downloads.activestate.com/ActivePython/releases/2.7.14.2717/ActivePython-2.7.14.2717-linux-x86_64-glibc-2.12-404899.tar.gz" "activepython" verify_py27 + install_package "ActivePython-2.7.14.2717-linux-x86_64-glibc-2.12-404899" "http://downloads.activestate.com/ActivePython/releases/2.7.14.2717/ActivePython-2.7.14.2717-linux-x86_64-glibc-2.12-404899.tar.gz#0b514b0edb6b847524d44637f56fdebcedb007864c61f8500e68bc2015dad937" "activepython" verify_py27 ;; * ) { echo diff --git a/plugins/python-build/share/python-build/activepython-3.5.4 b/plugins/python-build/share/python-build/activepython-3.5.4 index 3e8e9234..9faf14af 100644 --- a/plugins/python-build/share/python-build/activepython-3.5.4 +++ b/plugins/python-build/share/python-build/activepython-3.5.4 @@ -1,6 +1,8 @@ +# Location source: http://downloads.activestate.com/ActivePython/releases/3.5.4.3504/ + case "$(activepython_architecture 2>/dev/null || true)" in "linux-x86_64" ) - install_package "ActivePython-3.5.4.3504-linux-x86_64-glibc-2.12-404899" "http://downloads.activestate.com/ActivePython/releases/3.5.4.3504/ActivePython-3.5.4.3504-linux-x86_64-glibc-2.12-404899.tar.gz" "activepython" verify_py35 + install_package "ActivePython-3.5.4.3504-linux-x86_64-glibc-2.12-404899" "http://downloads.activestate.com/ActivePython/releases/3.5.4.3504/ActivePython-3.5.4.3504-linux-x86_64-glibc-2.12-404899.tar.gz#c65e7384bcff715399ef077aea5a17a9f60c3f5de3532a3767497af1d555f092" "activepython" verify_py35 ;; * ) { echo diff --git a/plugins/python-build/share/python-build/activepython-3.6.0 b/plugins/python-build/share/python-build/activepython-3.6.0 index 95d23f7f..e1dadb61 100644 --- a/plugins/python-build/share/python-build/activepython-3.6.0 +++ b/plugins/python-build/share/python-build/activepython-3.6.0 @@ -1,9 +1,11 @@ +# Download source: http://downloads.activestate.com/ActivePython/releases/3.6.0.3600/ + case "$(activepython_architecture 2>/dev/null || true)" in "linux-x86_64" ) - install_package "ActivePython-3.6.0.3600-linux-x86_64-glibc-2.3.6-401834" "http://downloads.activestate.com/ActivePython/releases/3.6.0.3600/ActivePython-3.6.0.3600-linux-x86_64-glibc-2.3.6-401834.tar.gz" "activepython" verify_py36 + install_package "ActivePython-3.6.0.3600-linux-x86_64-glibc-2.3.6-401834" "http://downloads.activestate.com/ActivePython/releases/3.6.0.3600/ActivePython-3.6.0.3600-linux-x86_64-glibc-2.3.6-401834.tar.gz#edd17d3221d9744fe27d37842b325f55d0261e69073de3be54e29c1806fe57ae" "activepython" verify_py36 ;; "linux-x86" ) - install_package "ActivePython-3.6.0.3600-linux-x86-glibc-2.3.6-401834" "http://downloads.activestate.com/ActivePython/releases/3.6.0.3600/ActivePython-3.6.0.3600-linux-x86-glibc-2.3.6-401834.tar.gz" "activepython" verify_py36 + install_package "ActivePython-3.6.0.3600-linux-x86-glibc-2.3.6-401834" "http://downloads.activestate.com/ActivePython/releases/3.6.0.3600/ActivePython-3.6.0.3600-linux-x86-glibc-2.3.6-401834.tar.gz#fafa22ad3346532384866ad009da0c9f23323167dff9de5995f94e827a5eba32" "activepython" verify_py36 ;; * ) { echo