Merge pull request #1113 from timsavage/activepython

Support for ActivePython
This commit is contained in:
Yamashita, Yuu 2018-03-13 09:33:17 +09:00 committed by GitHub
commit adbb59ed2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 0 deletions

View file

@ -1068,6 +1068,26 @@ build_package_pypy_builder() {
build_package_pypy 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() { anaconda_architecture() {
case "$(uname -s)" in case "$(uname -s)" in
"Darwin" ) echo "MacOSX-x86_64" ;; "Darwin" ) echo "MacOSX-x86_64" ;;

View file

@ -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

View file

@ -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

View file

@ -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