Co-authored-by: Dan Dees <dand@appsmiths.com>pull/2884/head
| @ -0,0 +1,81 @@ | |||
| VERSION='7.3.14' | |||
| PYVER='2.7' | |||
| # https://www.pypy.org/checksums.html | |||
| aarch64_hash=98468f4cc704a2821401afdd001ebddd367e594e05a70c7767fb86f1364fb21a | |||
| linux32_hash=b12b4b587da55c8f212ae854e31d29258451e069c65aca596e577644e520bc8b | |||
| linux64_hash=5938c3c6cddb2e8eb5e435cd3bf61d15134b94a9ac026e26a533bdda6c28a4a0 | |||
| osarm64_hash=a428e18fcf1470b032fb1f4d75795aeed9216b4314a4c8a3e4d7e13f10f8607e | |||
| osx64_hash=8af24683621937e65c518fbca1eb34e17ffc741c2ac917e4ca20694348157d78 | |||
| s390x_hash=5abc6a0f55a89c08def13b5f410b8e7bd706fe1b472f31db01ecbc4d0a49e8dc | |||
| ### end of manual settings - following lines same for every download | |||
| function err_no_binary { | |||
| local archmsg="${1}" | |||
| local ver="pypy${PYVER}-v${VERSION}-src" | |||
| local url="https://downloads.python.org/pypy/${ver}.tar.bz2" | |||
| { echo | |||
| colorize 1 "ERROR" | |||
| echo ": The binary distribution of PyPy is not available for ${archmsg}." | |||
| echo "try '${url}' to build from source." | |||
| echo | |||
| } >&2 | |||
| exit 1 | |||
| } | |||
| function pypy_pkg_data { | |||
| # pypy architecture tag | |||
| local ARCH="${1}" | |||
| # defaults | |||
| local cmd='install_package' # use bz2 | |||
| local pkg="${ARCH}" # assume matches | |||
| local ext='tar.bz2' | |||
| local hash='' # undefined | |||
| # select the hash, fix pkg if not match ARCH | |||
| case "${ARCH}" in | |||
| 'linux-aarch64' ) | |||
| hash="${aarch64_hash}" | |||
| pkg='aarch64' | |||
| ;; | |||
| 'linux' ) | |||
| hash="${linux32_hash}" | |||
| pkg='linux32' | |||
| ;; | |||
| 'linux64' ) | |||
| hash="${linux64_hash}" | |||
| ;; | |||
| 'osarm64' ) | |||
| hash="${osarm64_hash}" | |||
| pkg='macos_arm64' | |||
| ;; | |||
| 'osx64' ) | |||
| if require_osx_version "10.13"; then | |||
| hash="${osx64_hash}" | |||
| pkg='macos_x86_64' | |||
| else | |||
| err_no_binary "${ARCH}, OS X < 10.13" | |||
| fi | |||
| ;; | |||
| 's390x' ) | |||
| hash="${s390x_hash}" | |||
| ;; | |||
| * ) | |||
| err_no_binary "${ARCH}" | |||
| ;; | |||
| esac | |||
| local basever="pypy${PYVER}-v${VERSION}" | |||
| local baseurl="https://downloads.python.org/pypy/${basever}" | |||
| # result - command, package dir, url+hash | |||
| echo "${cmd}" "${basever}-${pkg}" "${baseurl}-${pkg}.${ext}#${hash}" | |||
| } | |||
| # determine command, package directory, url+hash | |||
| declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" | |||
| # install | |||
| ${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip_lt21' | |||
| @ -0,0 +1,14 @@ | |||
| VERSION='7.3.14' | |||
| PYVER='2.7' | |||
| # https://www.pypy.org/checksums.html | |||
| hash=e096fe67ce2d8d4d5e7dceb84fe1ca854498f00766d31b27d32c8d8833131373 | |||
| ### end of manual settings - following lines same for every download | |||
| ver="pypy${PYVER}-v${VERSION}-src" | |||
| url="https://downloads.python.org/pypy/${ver}.tar.bz2" | |||
| prefer_openssl11 | |||
| install_package "openssl-1.1.1f" "https://www.openssl.org/source/openssl-1.1.1f.tar.gz#186c6bfe6ecfba7a5b48c47f8a1673d0f3b0e5ba2e25602dd23b629975da3f35" mac_openssl --if has_broken_mac_openssl | |||
| install_package "${ver}" "${url}#${hash}" 'pypy_builder' "verify_py${PYVER//./}" 'ensurepip_lt21' | |||
| @ -0,0 +1,81 @@ | |||
| VERSION='7.3.14' | |||
| PYVER='3.10' | |||
| # https://www.pypy.org/checksums.html | |||
| aarch64_hash=fbef65dfc69dcd6006d843553d268b331f1b13dfc3938492bd35f0f477b5bcf4 | |||
| linux32_hash=d37e7c7a03bed5dceca2ab7f821ad7655808cccf6908155f78f0effd811b7f4f | |||
| linux64_hash=a83879891dc0a6c1504da0954fba1125b21a2591782897231a8168100ea72b94 | |||
| osarm64_hash=0f09584e21ed8f45e8ff1e3dd1582f077ebdd23a1068298f45006f67bc692632 | |||
| osx64_hash=31ce62b7ea3b5b5bde68241ae9404f0a68f5a7d0094ef651062b7a64caecfd4e | |||
| s390x_hash=363e87ad3b6547cc68981c665cf049449bed44cf9e49cabbbcc61df73ea2d40b | |||
| ### end of manual settings - following lines same for every download | |||
| function err_no_binary { | |||
| local archmsg="${1}" | |||
| local ver="pypy${PYVER}-v${VERSION}-src" | |||
| local url="https://downloads.python.org/pypy/${ver}.tar.bz2" | |||
| { echo | |||
| colorize 1 "ERROR" | |||
| echo ": The binary distribution of PyPy is not available for ${archmsg}." | |||
| echo "try '${url}' to build from source." | |||
| echo | |||
| } >&2 | |||
| exit 1 | |||
| } | |||
| function pypy_pkg_data { | |||
| # pypy architecture tag | |||
| local ARCH="${1}" | |||
| # defaults | |||
| local cmd='install_package' # use bz2 | |||
| local pkg="${ARCH}" # assume matches | |||
| local ext='tar.bz2' | |||
| local hash='' # undefined | |||
| # select the hash, fix pkg if not match ARCH | |||
| case "${ARCH}" in | |||
| 'linux-aarch64' ) | |||
| hash="${aarch64_hash}" | |||
| pkg='aarch64' | |||
| ;; | |||
| 'linux' ) | |||
| hash="${linux32_hash}" | |||
| pkg='linux32' | |||
| ;; | |||
| 'linux64' ) | |||
| hash="${linux64_hash}" | |||
| ;; | |||
| 'osarm64' ) | |||
| hash="${osarm64_hash}" | |||
| pkg='macos_arm64' | |||
| ;; | |||
| 'osx64' ) | |||
| if require_osx_version "10.13"; then | |||
| hash="${osx64_hash}" | |||
| pkg='macos_x86_64' | |||
| else | |||
| err_no_binary "${ARCH}, OS X < 10.13" | |||
| fi | |||
| ;; | |||
| 's390x' ) | |||
| hash="${s390x_hash}" | |||
| ;; | |||
| * ) | |||
| err_no_binary "${ARCH}" | |||
| ;; | |||
| esac | |||
| local basever="pypy${PYVER}-v${VERSION}" | |||
| local baseurl="https://downloads.python.org/pypy/${basever}" | |||
| # result - command, package dir, url+hash | |||
| echo "${cmd}" "${basever}-${pkg}" "${baseurl}-${pkg}.${ext}#${hash}" | |||
| } | |||
| # determine command, package directory, url+hash | |||
| declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" | |||
| # install | |||
| ${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip' | |||
| @ -0,0 +1,14 @@ | |||
| VERSION='7.3.14' | |||
| PYVER='3.10' | |||
| # https://www.pypy.org/checksums.html | |||
| hash=a3481af466103fa13740db4e27780e0423dcf8626b3340f60d3d3c28fbc11ae0 | |||
| ### end of manual settings - following lines same for every download | |||
| ver="pypy${PYVER}-v${VERSION}-src" | |||
| url="https://downloads.python.org/pypy/${ver}.tar.bz2" | |||
| prefer_openssl11 | |||
| install_package "openssl-1.1.1f" "https://www.openssl.org/source/openssl-1.1.1f.tar.gz#186c6bfe6ecfba7a5b48c47f8a1673d0f3b0e5ba2e25602dd23b629975da3f35" mac_openssl --if has_broken_mac_openssl | |||
| install_package "${ver}" "${url}#${hash}" 'pypy_builder' "verify_py${PYVER//./}" 'ensurepip' | |||
| @ -0,0 +1,81 @@ | |||
| VERSION='7.3.14' | |||
| PYVER='3.9' | |||
| # https://www.pypy.org/checksums.html | |||
| aarch64_hash=14b842f32f60ce2d9d130971f9bcbdb6875824a0e78fac36806d267e0982179c | |||
| linux32_hash=4ad89a22369a6f2f83a7d8d047e0fc4cf5597f0921fa7afa23499ed05f663503 | |||
| linux64_hash=febd770a616641ca8419c381c7fb224e515b892551d0db49a1231397ed38859d | |||
| osarm64_hash=4f8f2464a743f855b8fc8bda7ce7994a674616db3b5c2c1955cd08502fa782ca | |||
| osx64_hash=0e2fea9b2dadb82b7acf05f21c0144f7bb1cfaaa39c693ab1eba4aef5ed52680 | |||
| s390x_hash=ba2451e9081db5bc724a05530a7f98817231de83ff6fdf15bad21a4e9b6dfeae | |||
| ### end of manual settings - following lines same for every download | |||
| function err_no_binary { | |||
| local archmsg="${1}" | |||
| local ver="pypy${PYVER}-v${VERSION}-src" | |||
| local url="https://downloads.python.org/pypy/${ver}.tar.bz2" | |||
| { echo | |||
| colorize 1 "ERROR" | |||
| echo ": The binary distribution of PyPy is not available for ${archmsg}." | |||
| echo "try '${url}' to build from source." | |||
| echo | |||
| } >&2 | |||
| exit 1 | |||
| } | |||
| function pypy_pkg_data { | |||
| # pypy architecture tag | |||
| local ARCH="${1}" | |||
| # defaults | |||
| local cmd='install_package' # use bz2 | |||
| local pkg="${ARCH}" # assume matches | |||
| local ext='tar.bz2' | |||
| local hash='' # undefined | |||
| # select the hash, fix pkg if not match ARCH | |||
| case "${ARCH}" in | |||
| 'linux-aarch64' ) | |||
| hash="${aarch64_hash}" | |||
| pkg='aarch64' | |||
| ;; | |||
| 'linux' ) | |||
| hash="${linux32_hash}" | |||
| pkg='linux32' | |||
| ;; | |||
| 'linux64' ) | |||
| hash="${linux64_hash}" | |||
| ;; | |||
| 'osarm64' ) | |||
| hash="${osarm64_hash}" | |||
| pkg='macos_arm64' | |||
| ;; | |||
| 'osx64' ) | |||
| if require_osx_version "10.13"; then | |||
| hash="${osx64_hash}" | |||
| pkg='macos_x86_64' | |||
| else | |||
| err_no_binary "${ARCH}, OS X < 10.13" | |||
| fi | |||
| ;; | |||
| 's390x' ) | |||
| hash="${s390x_hash}" | |||
| ;; | |||
| * ) | |||
| err_no_binary "${ARCH}" | |||
| ;; | |||
| esac | |||
| local basever="pypy${PYVER}-v${VERSION}" | |||
| local baseurl="https://downloads.python.org/pypy/${basever}" | |||
| # result - command, package dir, url+hash | |||
| echo "${cmd}" "${basever}-${pkg}" "${baseurl}-${pkg}.${ext}#${hash}" | |||
| } | |||
| # determine command, package directory, url+hash | |||
| declare -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")" | |||
| # install | |||
| ${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip' | |||
| @ -0,0 +1,14 @@ | |||
| VERSION='7.3.14' | |||
| PYVER='3.9' | |||
| # https://www.pypy.org/checksums.html | |||
| hash=560fe6161e159557e1fe612aaadf9b293eefded1da372e70b8e3b23bba598366 | |||
| ### end of manual settings - following lines same for every download | |||
| ver="pypy${PYVER}-v${VERSION}-src" | |||
| url="https://downloads.python.org/pypy/${ver}.tar.bz2" | |||
| prefer_openssl11 | |||
| install_package "openssl-1.1.1f" "https://www.openssl.org/source/openssl-1.1.1f.tar.gz#186c6bfe6ecfba7a5b48c47f8a1673d0f3b0e5ba2e25602dd23b629975da3f35" mac_openssl --if has_broken_mac_openssl | |||
| install_package "${ver}" "${url}#${hash}" 'pypy_builder' "verify_py${PYVER//./}" 'ensurepip' | |||