Fix Python prerelease sorting (#7884)

## Summary

Observed from #7880, `rc3` should be sorted before `rc2`.
This commit is contained in:
Jo 2024-10-03 20:03:19 +08:00 committed by GitHub
parent c708cc82fa
commit 32ab2a5a95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 272 additions and 260 deletions

View file

@ -11,18 +11,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-aarch64-apple-darwin-install_only_stripped.tar.gz",
"sha256": "685ef71882f16eabab0bc838094727978370f0ad95c29f7f5c244ffa31316aeb"
},
"cpython-3.13.0rc2-darwin-aarch64-none": {
"name": "cpython",
"arch": "aarch64",
"os": "darwin",
"libc": "none",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-apple-darwin-install_only_stripped.tar.gz",
"sha256": "9e17f9fcc314a5dd489089a7502a525c4dd08af862f9cf33b52161a752f2a5b7"
},
"cpython-3.13.0rc3-linux-aarch64-gnu": {
"name": "cpython",
"arch": "aarch64",
@ -35,18 +23,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "1414c6b37f37e8fd9d14e48d81e313eb9c965cb0330747d5d2d689dd7e0c7043"
},
"cpython-3.13.0rc2-linux-aarch64-gnu": {
"name": "cpython",
"arch": "aarch64",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "d99a663d3b9f8792a659e366372e685550045cad12aef11645c06a9b6edcd071"
},
"cpython-3.13.0rc3-linux-armv7-gnueabi": {
"name": "cpython",
"arch": "armv7",
@ -59,18 +35,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz",
"sha256": "11befeaf4768c2ebbb258f5b07f94b7700f16424f858d6d2c250b434e99ce07c"
},
"cpython-3.13.0rc2-linux-armv7-gnueabi": {
"name": "cpython",
"arch": "armv7",
"os": "linux",
"libc": "gnueabi",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz",
"sha256": "4ca7f2aeaabf8dbb2193f0fa86f869525a5c209eb403a39a73f4cf7040cf3613"
},
"cpython-3.13.0rc3-linux-armv7-gnueabihf": {
"name": "cpython",
"arch": "armv7",
@ -83,18 +47,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz",
"sha256": "b7180d5ea5fda2f397d04e2e6e11a2a7e0d732542bf54c484afb81d087a7b927"
},
"cpython-3.13.0rc2-linux-armv7-gnueabihf": {
"name": "cpython",
"arch": "armv7",
"os": "linux",
"libc": "gnueabihf",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz",
"sha256": "0db2d263bdbb3af1e8dc0677fa44a5cda992ba989551346ccbbfd50a86135c3d"
},
"cpython-3.13.0rc3-windows-i686-none": {
"name": "cpython",
"arch": "i686",
@ -107,18 +59,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-i686-pc-windows-msvc-install_only_stripped.tar.gz",
"sha256": "873905b3e5e8cba700126e8d6ed28ad3aef0dd102f730f8ca196018477dd2da6"
},
"cpython-3.13.0rc2-windows-i686-none": {
"name": "cpython",
"arch": "i686",
"os": "windows",
"libc": "none",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-i686-pc-windows-msvc-install_only_stripped.tar.gz",
"sha256": "759f600b27a6a0ef2638cb02e8bbcc6de726dd1c896759f78da3e412f6c992e9"
},
"cpython-3.13.0rc3-linux-powerpc64le-gnu": {
"name": "cpython",
"arch": "powerpc64le",
@ -131,18 +71,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "59a2a81991d78bd658742d69b577a2b4c0734628ed42bff68615686eaf96f2ab"
},
"cpython-3.13.0rc2-linux-powerpc64le-gnu": {
"name": "cpython",
"arch": "powerpc64le",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "70073333f7d3f0b900c7299659fec069bbefd5e04808b3729d2434b2232ac729"
},
"cpython-3.13.0rc3-linux-s390x-gnu": {
"name": "cpython",
"arch": "s390x",
@ -155,18 +83,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-s390x-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "2769182e58b0dddec15222bfeecbd4b12fde61c38f23a90aa942514f3545fb9b"
},
"cpython-3.13.0rc2-linux-s390x-gnu": {
"name": "cpython",
"arch": "s390x",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-s390x-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "50a2080e30d1504e76e5471e46830f0b4974c66b538ed8ec7df416975133ff89"
},
"cpython-3.13.0rc3-darwin-x86_64-none": {
"name": "cpython",
"arch": "x86_64",
@ -179,18 +95,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-apple-darwin-install_only_stripped.tar.gz",
"sha256": "0f5f9fcf82093c428b80c552165544439f4adcdbe5129ecf721d619e532e9b5e"
},
"cpython-3.13.0rc2-darwin-x86_64-none": {
"name": "cpython",
"arch": "x86_64",
"os": "darwin",
"libc": "none",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-apple-darwin-install_only_stripped.tar.gz",
"sha256": "971668ac7f3168efc4d2b589e9d36247ab8ca9f9525c56c8aa7bfd374060105b"
},
"cpython-3.13.0rc3-linux-x86_64-gnu": {
"name": "cpython",
"arch": "x86_64",
@ -203,18 +107,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "445156c61e1cc167f7b8777ad08cc36e5598e12cd27e07453f6e6dc0f62e421e"
},
"cpython-3.13.0rc2-linux-x86_64-gnu": {
"name": "cpython",
"arch": "x86_64",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "1893a218709d3664b7a2b80f5598b5f25c0c3fe2bcc8d0a1c75eec6bbb93d602"
},
"cpython-3.13.0rc3-linux-x86_64-musl": {
"name": "cpython",
"arch": "x86_64",
@ -227,18 +119,6 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-unknown-linux-musl-install_only_stripped.tar.gz",
"sha256": "4df6b7665c735a728d72e6f49034f1a6b7d9a54b0fbc472dc2ca525eb3dd513f"
},
"cpython-3.13.0rc2-linux-x86_64-musl": {
"name": "cpython",
"arch": "x86_64",
"os": "linux",
"libc": "musl",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-musl-install_only_stripped.tar.gz",
"sha256": "6f09aa5ba6aab8bf21955dbc3d6bab19125130ef0ebe29242b0e5ac1eebb3161"
},
"cpython-3.13.0rc3-windows-x86_64-none": {
"name": "cpython",
"arch": "x86_64",
@ -251,6 +131,126 @@
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-pc-windows-msvc-install_only_stripped.tar.gz",
"sha256": "b59317828ef88f138ee122d420b60f2705bc72ae846ff69562e79e6c5cbc3177"
},
"cpython-3.13.0rc2-darwin-aarch64-none": {
"name": "cpython",
"arch": "aarch64",
"os": "darwin",
"libc": "none",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-apple-darwin-install_only_stripped.tar.gz",
"sha256": "9e17f9fcc314a5dd489089a7502a525c4dd08af862f9cf33b52161a752f2a5b7"
},
"cpython-3.13.0rc2-linux-aarch64-gnu": {
"name": "cpython",
"arch": "aarch64",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "d99a663d3b9f8792a659e366372e685550045cad12aef11645c06a9b6edcd071"
},
"cpython-3.13.0rc2-linux-armv7-gnueabi": {
"name": "cpython",
"arch": "armv7",
"os": "linux",
"libc": "gnueabi",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz",
"sha256": "4ca7f2aeaabf8dbb2193f0fa86f869525a5c209eb403a39a73f4cf7040cf3613"
},
"cpython-3.13.0rc2-linux-armv7-gnueabihf": {
"name": "cpython",
"arch": "armv7",
"os": "linux",
"libc": "gnueabihf",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz",
"sha256": "0db2d263bdbb3af1e8dc0677fa44a5cda992ba989551346ccbbfd50a86135c3d"
},
"cpython-3.13.0rc2-windows-i686-none": {
"name": "cpython",
"arch": "i686",
"os": "windows",
"libc": "none",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-i686-pc-windows-msvc-install_only_stripped.tar.gz",
"sha256": "759f600b27a6a0ef2638cb02e8bbcc6de726dd1c896759f78da3e412f6c992e9"
},
"cpython-3.13.0rc2-linux-powerpc64le-gnu": {
"name": "cpython",
"arch": "powerpc64le",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "70073333f7d3f0b900c7299659fec069bbefd5e04808b3729d2434b2232ac729"
},
"cpython-3.13.0rc2-linux-s390x-gnu": {
"name": "cpython",
"arch": "s390x",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-s390x-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "50a2080e30d1504e76e5471e46830f0b4974c66b538ed8ec7df416975133ff89"
},
"cpython-3.13.0rc2-darwin-x86_64-none": {
"name": "cpython",
"arch": "x86_64",
"os": "darwin",
"libc": "none",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-apple-darwin-install_only_stripped.tar.gz",
"sha256": "971668ac7f3168efc4d2b589e9d36247ab8ca9f9525c56c8aa7bfd374060105b"
},
"cpython-3.13.0rc2-linux-x86_64-gnu": {
"name": "cpython",
"arch": "x86_64",
"os": "linux",
"libc": "gnu",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz",
"sha256": "1893a218709d3664b7a2b80f5598b5f25c0c3fe2bcc8d0a1c75eec6bbb93d602"
},
"cpython-3.13.0rc2-linux-x86_64-musl": {
"name": "cpython",
"arch": "x86_64",
"os": "linux",
"libc": "musl",
"major": 3,
"minor": 13,
"patch": 0,
"prerelease": "rc2",
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-musl-install_only_stripped.tar.gz",
"sha256": "6f09aa5ba6aab8bf21955dbc3d6bab19125130ef0ebe29242b0e5ac1eebb3161"
},
"cpython-3.13.0rc2-windows-x86_64-none": {
"name": "cpython",
"arch": "x86_64",

View file

@ -448,14 +448,26 @@ class PyPyFinder(Finder):
def render(downloads: list[PythonDownload]) -> None:
"""Render `download-metadata.json`."""
def prerelease_sort_key(prerelease: str) -> tuple[int, int]:
if prerelease.startswith("a"):
return 0, int(prerelease[1:])
if prerelease.startswith("b"):
return 1, int(prerelease[1:])
if prerelease.startswith("rc"):
return 2, int(prerelease[2:])
return 3, 0
def sort_key(download: PythonDownload) -> tuple:
# Sort by implementation, version (latest first), and then by triple.
impl_order = [ImplementationName.CPYTHON, ImplementationName.PYPY]
prerelease = prerelease_sort_key(download.version.prerelease)
return (
impl_order.index(download.implementation),
-download.version.major,
-download.version.minor,
-download.version.patch,
-prerelease[0],
-prerelease[1],
download.triple,
)

View file

@ -20,20 +20,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-aarch64-apple-darwin-install_only_stripped.tar.gz",
sha256: Some("685ef71882f16eabab0bc838094727978370f0ad95c29f7f5c244ffa31316aeb")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Aarch64(target_lexicon::Aarch64Architecture::Aarch64)),
os: Os(target_lexicon::OperatingSystem::Darwin),
libc: Libc::None,
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-apple-darwin-install_only_stripped.tar.gz",
sha256: Some("9e17f9fcc314a5dd489089a7502a525c4dd08af862f9cf33b52161a752f2a5b7")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -48,20 +34,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("1414c6b37f37e8fd9d14e48d81e313eb9c965cb0330747d5d2d689dd7e0c7043")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Aarch64(target_lexicon::Aarch64Architecture::Aarch64)),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("d99a663d3b9f8792a659e366372e685550045cad12aef11645c06a9b6edcd071")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -76,20 +48,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz",
sha256: Some("11befeaf4768c2ebbb258f5b07f94b7700f16424f858d6d2c250b434e99ce07c")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Arm(target_lexicon::ArmArchitecture::Armv7)),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnueabi),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz",
sha256: Some("4ca7f2aeaabf8dbb2193f0fa86f869525a5c209eb403a39a73f4cf7040cf3613")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -104,20 +62,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz",
sha256: Some("b7180d5ea5fda2f397d04e2e6e11a2a7e0d732542bf54c484afb81d087a7b927")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Arm(target_lexicon::ArmArchitecture::Armv7)),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnueabihf),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz",
sha256: Some("0db2d263bdbb3af1e8dc0677fa44a5cda992ba989551346ccbbfd50a86135c3d")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -132,20 +76,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-i686-pc-windows-msvc-install_only_stripped.tar.gz",
sha256: Some("873905b3e5e8cba700126e8d6ed28ad3aef0dd102f730f8ca196018477dd2da6")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_32(target_lexicon::X86_32Architecture::I686)),
os: Os(target_lexicon::OperatingSystem::Windows),
libc: Libc::None,
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-i686-pc-windows-msvc-install_only_stripped.tar.gz",
sha256: Some("759f600b27a6a0ef2638cb02e8bbcc6de726dd1c896759f78da3e412f6c992e9")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -160,20 +90,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("59a2a81991d78bd658742d69b577a2b4c0734628ed42bff68615686eaf96f2ab")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Powerpc64le),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("70073333f7d3f0b900c7299659fec069bbefd5e04808b3729d2434b2232ac729")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -188,20 +104,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-s390x-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("2769182e58b0dddec15222bfeecbd4b12fde61c38f23a90aa942514f3545fb9b")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::S390x),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-s390x-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("50a2080e30d1504e76e5471e46830f0b4974c66b538ed8ec7df416975133ff89")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -216,20 +118,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-apple-darwin-install_only_stripped.tar.gz",
sha256: Some("0f5f9fcf82093c428b80c552165544439f4adcdbe5129ecf721d619e532e9b5e")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_64),
os: Os(target_lexicon::OperatingSystem::Darwin),
libc: Libc::None,
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-apple-darwin-install_only_stripped.tar.gz",
sha256: Some("971668ac7f3168efc4d2b589e9d36247ab8ca9f9525c56c8aa7bfd374060105b")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -244,20 +132,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("445156c61e1cc167f7b8777ad08cc36e5598e12cd27e07453f6e6dc0f62e421e")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_64),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("1893a218709d3664b7a2b80f5598b5f25c0c3fe2bcc8d0a1c75eec6bbb93d602")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -272,20 +146,6 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-unknown-linux-musl-install_only_stripped.tar.gz",
sha256: Some("4df6b7665c735a728d72e6f49034f1a6b7d9a54b0fbc472dc2ca525eb3dd513f")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_64),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Musl),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-musl-install_only_stripped.tar.gz",
sha256: Some("6f09aa5ba6aab8bf21955dbc3d6bab19125130ef0ebe29242b0e5ac1eebb3161")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
@ -300,6 +160,146 @@ pub(crate) const PYTHON_DOWNLOADS: &[ManagedPythonDownload] = &[
url: "https://github.com/indygreg/python-build-standalone/releases/download/20241002/cpython-3.13.0rc3%2B20241002-x86_64-pc-windows-msvc-install_only_stripped.tar.gz",
sha256: Some("b59317828ef88f138ee122d420b60f2705bc72ae846ff69562e79e6c5cbc3177")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Aarch64(target_lexicon::Aarch64Architecture::Aarch64)),
os: Os(target_lexicon::OperatingSystem::Darwin),
libc: Libc::None,
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-apple-darwin-install_only_stripped.tar.gz",
sha256: Some("9e17f9fcc314a5dd489089a7502a525c4dd08af862f9cf33b52161a752f2a5b7")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Aarch64(target_lexicon::Aarch64Architecture::Aarch64)),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-aarch64-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("d99a663d3b9f8792a659e366372e685550045cad12aef11645c06a9b6edcd071")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Arm(target_lexicon::ArmArchitecture::Armv7)),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnueabi),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabi-install_only_stripped.tar.gz",
sha256: Some("4ca7f2aeaabf8dbb2193f0fa86f869525a5c209eb403a39a73f4cf7040cf3613")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Arm(target_lexicon::ArmArchitecture::Armv7)),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnueabihf),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-armv7-unknown-linux-gnueabihf-install_only_stripped.tar.gz",
sha256: Some("0db2d263bdbb3af1e8dc0677fa44a5cda992ba989551346ccbbfd50a86135c3d")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_32(target_lexicon::X86_32Architecture::I686)),
os: Os(target_lexicon::OperatingSystem::Windows),
libc: Libc::None,
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-i686-pc-windows-msvc-install_only_stripped.tar.gz",
sha256: Some("759f600b27a6a0ef2638cb02e8bbcc6de726dd1c896759f78da3e412f6c992e9")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::Powerpc64le),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-ppc64le-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("70073333f7d3f0b900c7299659fec069bbefd5e04808b3729d2434b2232ac729")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::S390x),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-s390x-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("50a2080e30d1504e76e5471e46830f0b4974c66b538ed8ec7df416975133ff89")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_64),
os: Os(target_lexicon::OperatingSystem::Darwin),
libc: Libc::None,
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-apple-darwin-install_only_stripped.tar.gz",
sha256: Some("971668ac7f3168efc4d2b589e9d36247ab8ca9f9525c56c8aa7bfd374060105b")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_64),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Gnu),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz",
sha256: Some("1893a218709d3664b7a2b80f5598b5f25c0c3fe2bcc8d0a1c75eec6bbb93d602")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,
minor: 13,
patch: 0,
prerelease: Cow::Borrowed("rc2"),
implementation: LenientImplementationName::Known(ImplementationName::CPython),
arch: Arch(target_lexicon::Architecture::X86_64),
os: Os(target_lexicon::OperatingSystem::Linux),
libc: Libc::Some(target_lexicon::Environment::Musl),
},
url: "https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.13.0rc2%2B20240909-x86_64-unknown-linux-musl-install_only_stripped.tar.gz",
sha256: Some("6f09aa5ba6aab8bf21955dbc3d6bab19125130ef0ebe29242b0e5ac1eebb3161")
},
ManagedPythonDownload {
key: PythonInstallationKey {
major: 3,