| @ -0,0 +1,81 @@ | |||
| VERSION='7.3.16' | |||
| PYVER='2.7' | |||
| # https://www.pypy.org/checksums.html | |||
| aarch64_hash=be44e65dd8c00d2388b2580dbe2af6a5179f951a8f4979efc74360f92f3c7e96 | |||
| linux32_hash=a19712d7a6bd4f6d113e352c5271803c583b5129b76a357d387b1fa85204f8e5 | |||
| linux64_hash=04b2fceb712d6f811274825b8a471ee392d3d1b53afc83eb3f42439ce00d8e07 | |||
| osarm64_hash=9cc13f4d6c4096820e1e0ddabb3959f853e45150ce0166a39aa23867e99f0145 | |||
| osx64_hash=e8744c1cef8b9e4eb2d2b6b368ed19a1c5cde482c7ef750f2d9f0807bb77fd1c | |||
| s390x_hash=09eb70b932e6aac484cf4b5f2de5845f71589f2cbb53e5ed37a497613b43cd53 | |||
| ### 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.16' | |||
| PYVER='2.7' | |||
| # https://www.pypy.org/checksums.html | |||
| hash=43721cc0c397f0f3560b325c20c70b11f7c76c27910d3df09f8418cec4f9c2ad | |||
| ### 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.16' | |||
| PYVER='3.10' | |||
| # https://www.pypy.org/checksums.html | |||
| aarch64_hash=fc720999bc5050e1d3706b3b6445e695cf42bfc71ebc7c88ed6bb88828b1d385 | |||
| linux32_hash=0df48aa780159e879ac89a805d143e4a6cd1b842f98046f5a3f865814bfaa2a4 | |||
| linux64_hash=404e6180d6caf9258eaab0c02c72018e9aa8eb03ab9094a0ff17ee5e3b265ac1 | |||
| osarm64_hash=6c003376667a95c7a228544649677b9927b8210d6444b901817aad24b8719b93 | |||
| osx64_hash=490f2c6ba2489f405444f3b4ad42166da6e2eb73489a9535b206067eaaf21737 | |||
| s390x_hash=af97efe498a209ba18c7bc7d084164a9907fb3736588b6864955177e19d5216a | |||
| ### 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.16' | |||
| PYVER='3.10' | |||
| # https://www.pypy.org/checksums.html | |||
| hash=4a3a3177d0a1f51d59982bb981d1d485403bda3419d5437b9e077f55f59424ff | |||
| ### 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.16' | |||
| PYVER='3.9' | |||
| # https://www.pypy.org/checksums.html | |||
| aarch64_hash=de3f2ed3581b30555ac0dd3e4df78a262ec736a36fb2e8f28259f8539b278ef4 | |||
| linux32_hash=583b6d6dd4e8c07cbc04da04a7ec2bdfa6674825289c2378c5e018d5abe779ea | |||
| linux64_hash=16f9c5b808c848516e742986e826b833cdbeda09ad8764e8704595adbe791b23 | |||
| osarm64_hash=88f824e7a2d676440d09bc90fc959ae0fd3557d7e2f14bfbbe53d41d159a47fe | |||
| osx64_hash=fda015431621e7e5aa16359d114f2c45a77ed936992c1efff86302e768a6b21c | |||
| s390x_hash=7a56ebb27dba3110dc1ff52d8e0449cdb37fe5c2275f7faf11432e4e164833ba | |||
| ### 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.16' | |||
| PYVER='3.9' | |||
| # https://www.pypy.org/checksums.html | |||
| hash=5b75af3f8e76041e79c1ef5ce22ce63f8bd131733e9302081897d8f650e81843 | |||
| ### 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' | |||