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" ;; 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..70678731 --- /dev/null +++ b/plugins/python-build/share/python-build/activepython-2.7.14 @@ -0,0 +1,15 @@ +# 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#0b514b0edb6b847524d44637f56fdebcedb007864c61f8500e68bc2015dad937" "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..9faf14af --- /dev/null +++ b/plugins/python-build/share/python-build/activepython-3.5.4 @@ -0,0 +1,15 @@ +# 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#c65e7384bcff715399ef077aea5a17a9f60c3f5de3532a3767497af1d555f092" "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..e1dadb61 --- /dev/null +++ b/plugins/python-build/share/python-build/activepython-3.6.0 @@ -0,0 +1,18 @@ +# 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#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#fafa22ad3346532384866ad009da0c9f23323167dff9de5995f94e827a5eba32" "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