mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
parent
58427b9a5c
commit
f0f2cdd1c6
8 changed files with 380 additions and 0 deletions
81
plugins/python-build/share/python-build/pypy2.7-7.3.9
Normal file
81
plugins/python-build/share/python-build/pypy2.7-7.3.9
Normal file
|
@ -0,0 +1,81 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='2.7'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
aarch64_hash=aff4e4dbab53448f662cd01acb2251571d60f836d2f48382a7d8da54ca5b3442
|
||||
linux32_hash=bbf4e7343d43c8217099a9bffeed6a1781f4b5a3e186ed1a0befca65e647aeb9
|
||||
linux64_hash=172a928b0096a7e00b7d58f523f57300c35c3de7f822491e2a7bc845375c23f8
|
||||
osx64_hash=77314f5a6b2cc35d24e6f952bef89f5da612b90e4127a8034aed708d9ae483c4
|
||||
s390x_hash=62481dd3c6472393ca05eb3a0880c96e4f5921747157607dbaa772a7369cab77
|
||||
win64_hash=ca7b0f4c576995b388cfb4c796e3f6f20b037e5314571bf267daa068a3a2af31
|
||||
|
||||
### 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 -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
|
||||
|
||||
# install
|
||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
14
plugins/python-build/share/python-build/pypy2.7-7.3.9-src
Normal file
14
plugins/python-build/share/python-build/pypy2.7-7.3.9-src
Normal file
|
@ -0,0 +1,14 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='2.7'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
hash=39b0972956f6548ce5828019dbae12503c32d6cbe91a2becf88d3e42cc52197b
|
||||
|
||||
### 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'
|
81
plugins/python-build/share/python-build/pypy3.7-7.3.9
Normal file
81
plugins/python-build/share/python-build/pypy3.7-7.3.9
Normal file
|
@ -0,0 +1,81 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='3.7'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
aarch64_hash=dfc62f2c453fb851d10a1879c6e75c31ffebbf2a44d181bb06fcac4750d023fc
|
||||
linux32_hash=3398cece0167b81baa219c9cd54a549443d8c0a6b553ec8ec13236281e0d86cd
|
||||
linux64_hash=c58195124d807ecc527499ee19bc511ed753f4f2e418203ca51bc7e3b124d5d1
|
||||
osx64_hash=12d92f578a200d50959e55074b20f29f93c538943e9a6e6522df1a1cc9cef542
|
||||
s390x_hash=fcab3b9e110379948217cf592229542f53c33bfe881006f95ce30ac815a6df48
|
||||
win64_hash=8acb184b48fb3c854de0662e4d23a66b90e73b1ab73a86695022c12c745d8b00
|
||||
|
||||
### 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 -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
|
||||
|
||||
# install
|
||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
14
plugins/python-build/share/python-build/pypy3.7-7.3.9-src
Normal file
14
plugins/python-build/share/python-build/pypy3.7-7.3.9-src
Normal file
|
@ -0,0 +1,14 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='3.7'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
hash=70426163b194ee46009986eea6d9426098a3ffb552d9cdbd3dfaa64a47373f49
|
||||
|
||||
### 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'
|
81
plugins/python-build/share/python-build/pypy3.8-7.3.9
Normal file
81
plugins/python-build/share/python-build/pypy3.8-7.3.9
Normal file
|
@ -0,0 +1,81 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='3.8'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
aarch64_hash=5e124455e207425e80731dff317f0432fa0aba1f025845ffca813770e2447e32
|
||||
linux32_hash=4b261516c6c59078ab0c8bd7207327a1b97057b4ec1714ed5e79a026f9efd492
|
||||
linux64_hash=08be25ec82fc5d23b78563eda144923517daba481a90af0ace7a047c9c9a3c34
|
||||
osx64_hash=91a5c2c1facd5a4931a8682b7d792f7cf4f2ba25cd2e7e44e982139a6d5e4840
|
||||
s390x_hash=c6177a0016c9145c7b99fddb5d74cc2e518ccdb216a6deb51ef6a377510cc930
|
||||
win64_hash=05022baaa55db2b60880f2422312d9e4025e1267303ac57f33e8253559d0be88
|
||||
|
||||
### 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 -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
|
||||
|
||||
# install
|
||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
14
plugins/python-build/share/python-build/pypy3.8-7.3.9-src
Normal file
14
plugins/python-build/share/python-build/pypy3.8-7.3.9-src
Normal file
|
@ -0,0 +1,14 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='3.8'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
hash=5b5d9d9256f12a129af8384e2f581bdfab3bc0fbbe3a0a480d9c1d2e95490eb1
|
||||
|
||||
### 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'
|
81
plugins/python-build/share/python-build/pypy3.9-7.3.9
Normal file
81
plugins/python-build/share/python-build/pypy3.9-7.3.9
Normal file
|
@ -0,0 +1,81 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='3.9'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
aarch64_hash=2e1ae193d98bc51439642a7618d521ea019f45b8fb226940f7e334c548d2b4b9
|
||||
linux32_hash=0de4b9501cf28524cdedcff5052deee9ea4630176a512bdc408edfa30914bae7
|
||||
linux64_hash=46818cb3d74b96b34787548343d266e2562b531ddbaf330383ba930ff1930ed5
|
||||
osx64_hash=59c8852168b2b1ba1f0211ff043c678760380d2f9faf2f95042a8878554dbc25
|
||||
s390x_hash=774dca83bcb4403fb99b3d155e7bd572ef8c52b9fe87a657109f64e75ad71732
|
||||
win64_hash=be48ab42f95c402543a7042c999c9433b17e55477c847612c8733a583ca6dff5
|
||||
|
||||
### 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 -a pd="$(pypy_pkg_data "$(pypy_architecture 2>/dev/null || true)")"
|
||||
|
||||
# install
|
||||
${pd[0]} "${pd[1]}" "${pd[2]}" 'pypy' "verify_py${PYVER//./}" 'ensurepip'
|
14
plugins/python-build/share/python-build/pypy3.9-7.3.9-src
Normal file
14
plugins/python-build/share/python-build/pypy3.9-7.3.9-src
Normal file
|
@ -0,0 +1,14 @@
|
|||
VERSION='7.3.9'
|
||||
PYVER='3.9'
|
||||
|
||||
# https://www.pypy.org/checksums.html
|
||||
hash=2abaa1e9fe1ec0e233c9fbc377a0c8e9a0634080a8f4f30eb6898301f6618c12
|
||||
|
||||
### 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'
|
Loading…
Reference in a new issue