Add PyPy 7.3.8 (#2253)

Co-authored-by: Dan Dees <dand@appsmiths.com>
This commit is contained in:
dand-oss 2022-03-09 12:13:38 -06:00 committed by GitHub
parent ee6ef20859
commit 0d949796ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 381 additions and 1 deletions

View file

@ -0,0 +1,81 @@
VERSION='7.3.8'
PYVER='2.7'
# https://www.pypy.org/checksums.html
aarch64_hash=ca1f8d3146c83002ee97615906b0930e821297dcce3063b5b28933a0690ef298
linux32_hash=7c84f173bbcd73d0eb10909259d11b5cc253d4c6ea4492e6da8f2532df9b3da5
linux64_hash=1f2e84fb539ffce233c34769d2f11647955f894be091e85419e05f48011e8940
osx64_hash=e5c1ff39ad9916ea23e3deb8012fe42367b6b19284cf13b1a1ea2b2f53a43add
s390x_hash=b4ae4e708ba84602d976ad6ae391ef2eef4b1896d831b8f2b2ec69927dd92014
win64_hash=806a29a6c5550b1e669d8870683d3379138d3d43eb1e07bdf26d65a0691265f2
### end of manual settings - following lines same for every download
function pypy_pkg_data {
# pypy architecture
local ARCH="${1}"
local basesrc="pypy${PYVER}-${VERSION}-src"
local basever="pypy${PYVER}-v${VERSION}"
local baseurl="https://downloads.python.org/pypy/${basever}"
# defaults
local cmd='install_package' # use bz2
local pkg="${ARCH}" # assume matches
local url="${baseurl}-${pkg}.tar.bz2" # use bz2
local hash='' # undefined
case "${pkg}" in
'linux-aarch64' )
hash="${aarch64_hash}"
url="${baseurl}-aarch64.tar.bz2" # diff url
;;
'linux' )
hash="${linux32_hash}"
pkg='linux32' # package name revised
url="${baseurl}-${pkg}.tar.bz2" # new url
;;
'linux64' )
hash="${linux64_hash}"
;;
'osx64' )
if require_osx_version "10.13"; then
hash="${osx64_hash}"
else
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true), OS X < 10.13."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
fi
;;
's390x' )
hash="${s390x_hash}"
;;
'win64' )
hash="${win64_hash}"
cmd='install_zip' # diff command
url="${baseurl}-${pkg}.zip" # zip rather than bz2
;;
* )
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true)."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
;;
esac
# result - command, package dir, url+hash
echo "${cmd}" "${basever}-${pkg}" "${url}#${hash}"
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'

View file

@ -0,0 +1,14 @@
VERSION='7.3.8'
PYVER='2.7'
# https://www.pypy.org/checksums.html
hash=0cdad270c62d3ccc53cc87eeb069a6dc46acaf95521b584624bcd6697d94fa1c
### 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'

View file

@ -1,7 +1,7 @@
VERSION='7.3.7' VERSION='7.3.7'
PYVER='3.7' PYVER='3.7'
# https://www.pypy.org/checksums.html
#require_gcc
prefer_openssl11 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 "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 "pypy${PYVER}-v${VERSION}-src" "https://downloads.python.org/pypy/pypy${PYVER}-v${VERSION}-src.tar.bz2#2ed02ac9e710859c41bc82deafb08619792bb9a27eeaa1676c741ededd214dd7" "pypy_builder" "verify_py${PYVER//./}" ensurepip install_package "pypy${PYVER}-v${VERSION}-src" "https://downloads.python.org/pypy/pypy${PYVER}-v${VERSION}-src.tar.bz2#2ed02ac9e710859c41bc82deafb08619792bb9a27eeaa1676c741ededd214dd7" "pypy_builder" "verify_py${PYVER//./}" ensurepip

View file

@ -0,0 +1,81 @@
VERSION='7.3.8'
PYVER='3.7'
# https://www.pypy.org/checksums.html
aarch64_hash=4fb2f8281f3aaca72e6fe62ecc5fc054fcc79cd061ca3e0eea730f7d82d610d4
linux32_hash=38429ec6ea1aca391821ee4fbda7358ae86de4600146643f2af2fe2c085af839
linux64_hash=409085db79a6d90bfcf4f576dca1538498e65937acfbe03bd4909bdc262ff378
osx64_hash=76b8eef5b059a7e478f525615482d2a6e9feb83375e3f63c16381d80521a693f
s390x_hash=5c2cd3f7cf04cb96f6bcc6b02e271f5d7275867763978e66651b8d1605ef3141
win64_hash=96df67492bc8d62b2e71dddf5f6c58965a26cac9799c5f4081401af0494b3bcc
### end of manual settings - following lines same for every download
function pypy_pkg_data {
# pypy architecture
local ARCH="${1}"
local basesrc="pypy${PYVER}-${VERSION}-src"
local basever="pypy${PYVER}-v${VERSION}"
local baseurl="https://downloads.python.org/pypy/${basever}"
# defaults
local cmd='install_package' # use bz2
local pkg="${ARCH}" # assume matches
local url="${baseurl}-${pkg}.tar.bz2" # use bz2
local hash='' # undefined
case "${pkg}" in
'linux-aarch64' )
hash="${aarch64_hash}"
url="${baseurl}-aarch64.tar.bz2" # diff url
;;
'linux' )
hash="${linux32_hash}"
pkg='linux32' # package name revised
url="${baseurl}-${pkg}.tar.bz2" # new url
;;
'linux64' )
hash="${linux64_hash}"
;;
'osx64' )
if require_osx_version "10.13"; then
hash="${osx64_hash}"
else
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true), OS X < 10.13."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
fi
;;
's390x' )
hash="${s390x_hash}"
;;
'win64' )
hash="${win64_hash}"
cmd='install_zip' # diff command
url="${baseurl}-${pkg}.zip" # zip rather than bz2
;;
* )
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true)."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
;;
esac
# result - command, package dir, url+hash
echo "${cmd}" "${basever}-${pkg}" "${url}#${hash}"
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'

View file

@ -0,0 +1,14 @@
VERSION='7.3.8'
PYVER='3.7'
# https://www.pypy.org/checksums.html
hash=35752be62b148fa6f7fb69e58e1f993c7cc319bea54928eb03ed2e75b8248d5f
### 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'

View file

@ -0,0 +1,81 @@
VERSION='7.3.8'
PYVER='3.8'
# https://www.pypy.org/checksums.html
aarch64_hash=fe41df391f87239925e573e195e631a9d03d37f471eb1479790ee13ca47a28af
linux32_hash=bea4b275decd492af6462157d293dd6fcf08a949859f8aec0959537b40afd032
linux64_hash=089f8e3e357d6130815964ddd3507c13bd53e4976ccf0a89b5c36a9a6775a188
osx64_hash=de1b283ff112d76395c0162a1cf11528e192bdc230ee3f1b237f7694c7518dee
s390x_hash=0c46527770ec1322b98942860ad3551767d3e09d4481bcb49abd92001a293840
win64_hash=0894c468e7de758c509a602a28ef0ba4fbf197ccdf946c7853a7283d9bb2a345
### end of manual settings - following lines same for every download
function pypy_pkg_data {
# pypy architecture
local ARCH="${1}"
local basesrc="pypy${PYVER}-${VERSION}-src"
local basever="pypy${PYVER}-v${VERSION}"
local baseurl="https://downloads.python.org/pypy/${basever}"
# defaults
local cmd='install_package' # use bz2
local pkg="${ARCH}" # assume matches
local url="${baseurl}-${pkg}.tar.bz2" # use bz2
local hash='' # undefined
case "${pkg}" in
'linux-aarch64' )
hash="${aarch64_hash}"
url="${baseurl}-aarch64.tar.bz2" # diff url
;;
'linux' )
hash="${linux32_hash}"
pkg='linux32' # package name revised
url="${baseurl}-${pkg}.tar.bz2" # new url
;;
'linux64' )
hash="${linux64_hash}"
;;
'osx64' )
if require_osx_version "10.13"; then
hash="${osx64_hash}"
else
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true), OS X < 10.13."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
fi
;;
's390x' )
hash="${s390x_hash}"
;;
'win64' )
hash="${win64_hash}"
cmd='install_zip' # diff command
url="${baseurl}-${pkg}.zip" # zip rather than bz2
;;
* )
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true)."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
;;
esac
# result - command, package dir, url+hash
echo "${cmd}" "${basever}-${pkg}" "${url}#${hash}"
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'

View file

@ -0,0 +1,14 @@
VERSION='7.3.8'
PYVER='3.8'
# https://www.pypy.org/checksums.html
hash=f1a378b264cdbfb0e03d77dfc4d105d02f91d542bd7c9c957d1f8083a9808f1f
### 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'

View file

@ -0,0 +1,81 @@
VERSION='7.3.8'
PYVER='3.9'
# https://www.pypy.org/checksums.html
aarch64_hash=89d7ee12a8c416e83fae80af82482531fc6502321e75e5b7a0cc01d756ee5f0e
linux32_hash=0894c468e7de758c509a602a28ef0ba4fbf197ccdf946c7853a7283d9bb2a345
linux64_hash=129a055032bba700cd1d0acacab3659cf6b7180e25b1b2f730e792f06d5b3010
osx64_hash=95bd88ac8d6372cd5b7b5393de7b7d5c615a0c6e42fdb1eb67f2d2d510965aee
s390x_hash=37b596bfe76707ead38ffb565629697e9b6fa24e722acc3c632b41ec624f5d95
win64_hash=c1b2e4cde2dcd1208d41ef7b7df8e5c90564a521e7a5db431673da335a1ba697
### end of manual settings - following lines same for every download
function pypy_pkg_data {
# pypy architecture
local ARCH="${1}"
local basesrc="pypy${PYVER}-${VERSION}-src"
local basever="pypy${PYVER}-v${VERSION}"
local baseurl="https://downloads.python.org/pypy/${basever}"
# defaults
local cmd='install_package' # use bz2
local pkg="${ARCH}" # assume matches
local url="${baseurl}-${pkg}.tar.bz2" # use bz2
local hash='' # undefined
case "${pkg}" in
'linux-aarch64' )
hash="${aarch64_hash}"
url="${baseurl}-aarch64.tar.bz2" # diff url
;;
'linux' )
hash="${linux32_hash}"
pkg='linux32' # package name revised
url="${baseurl}-${pkg}.tar.bz2" # new url
;;
'linux64' )
hash="${linux64_hash}"
;;
'osx64' )
if require_osx_version "10.13"; then
hash="${osx64_hash}"
else
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true), OS X < 10.13."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
fi
;;
's390x' )
hash="${s390x_hash}"
;;
'win64' )
hash="${win64_hash}"
cmd='install_zip' # diff command
url="${baseurl}-${pkg}.zip" # zip rather than bz2
;;
* )
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of PyPy is not available for $(pypy_architecture 2>/dev/null || true)."
echo "try '${basesrc}' to build from source."
echo
} >&2
exit 1
;;
esac
# result - command, package dir, url+hash
echo "${cmd}" "${basever}-${pkg}" "${url}#${hash}"
}
# determine command, package directory, url+hash
declare -ar pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
# install
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'

View file

@ -0,0 +1,14 @@
VERSION='7.3.8'
PYVER='3.9'
# https://www.pypy.org/checksums.html
hash=546b7fc3789728869d5ada7b6a95ce9d03047e8489b92ada84613c900e431ee9
### 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'