pyoxidizerlib/
default_python_distributions.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
5// THIS FILE IS AUTOGENERATED. DO NOT EDIT MANUALLY.
6
7//! Default Python distributions.
8
9use crate::py_packaging::distribution::{PythonDistributionLocation, PythonDistributionRecord};
10use crate::python_distributions::PythonDistributionCollection;
11use once_cell::sync::Lazy;
12
13pub static PYTHON_DISTRIBUTIONS: Lazy<PythonDistributionCollection> = Lazy::new(|| {
14    let dists = vec![
15        // Linux glibc linked.
16        PythonDistributionRecord {
17            python_major_minor_version: "3.8".to_string(),
18            location: PythonDistributionLocation::Url {
19                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-x86_64-unknown-linux-gnu-pgo-full.tar.zst".to_string(),
20                sha256: "4e62766abe8a1afefe0b001e476b5e4c6c7457df9e39fefc99dad0bf9bb6648e".to_string(),
21            },
22            target_triple: "x86_64-unknown-linux-gnu".to_string(),
23            supports_prebuilt_extension_modules: true,
24        },
25        PythonDistributionRecord {
26            python_major_minor_version: "3.9".to_string(),
27            location: PythonDistributionLocation::Url {
28                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-aarch64-unknown-linux-gnu-noopt-full.tar.zst".to_string(),
29                sha256: "8894d6f2cd600623ec0a6f89c9c4166bc91efc0a8d8b3ab1b4ed0e1d537b0859".to_string(),
30            },
31            target_triple: "aarch64-unknown-linux-gnu".to_string(),
32            supports_prebuilt_extension_modules: true,
33        },
34        PythonDistributionRecord {
35            python_major_minor_version: "3.9".to_string(),
36            location: PythonDistributionLocation::Url {
37                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64-unknown-linux-gnu-pgo-full.tar.zst".to_string(),
38                sha256: "81321225784f6f301afc62171826486bef718566e2dde0150a0e2c963f249999".to_string(),
39            },
40            target_triple: "x86_64-unknown-linux-gnu".to_string(),
41            supports_prebuilt_extension_modules: true,
42        },
43        PythonDistributionRecord {
44            python_major_minor_version: "3.9".to_string(),
45            location: PythonDistributionLocation::Url {
46                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64_v2-unknown-linux-gnu-pgo-full.tar.zst".to_string(),
47                sha256: "f22597d932c442657624d8f0934fd8a035ac661dcc17aaec7fdbb6deb7c716b5".to_string(),
48            },
49            target_triple: "x86_64_v2-unknown-linux-gnu".to_string(),
50            supports_prebuilt_extension_modules: true,
51        },
52        PythonDistributionRecord {
53            python_major_minor_version: "3.9".to_string(),
54            location: PythonDistributionLocation::Url {
55                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64_v3-unknown-linux-gnu-pgo-full.tar.zst".to_string(),
56                sha256: "432d34cd56b7fbf3a3559e6136d5ce3b35694efad55a8feb38712b2f2aba9e76".to_string(),
57            },
58            target_triple: "x86_64_v3-unknown-linux-gnu".to_string(),
59            supports_prebuilt_extension_modules: true,
60        },
61        PythonDistributionRecord {
62            python_major_minor_version: "3.10".to_string(),
63            location: PythonDistributionLocation::Url {
64                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-aarch64-unknown-linux-gnu-noopt-full.tar.zst".to_string(),
65                sha256: "50d0ef77d91a3116ab8c1a2d1ab6f6877269be678f9810f17b47b346c40d7b93".to_string(),
66            },
67            target_triple: "aarch64-unknown-linux-gnu".to_string(),
68            supports_prebuilt_extension_modules: true,
69        },
70        PythonDistributionRecord {
71            python_major_minor_version: "3.10".to_string(),
72            location: PythonDistributionLocation::Url {
73                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-unknown-linux-gnu-pgo-full.tar.zst".to_string(),
74                sha256: "ddf27f962f0a13a4ff94d9dd51b55a33e82b97320fddfe42ce4ca74a6af1e70a".to_string(),
75            },
76            target_triple: "x86_64-unknown-linux-gnu".to_string(),
77            supports_prebuilt_extension_modules: true,
78        },
79        PythonDistributionRecord {
80            python_major_minor_version: "3.10".to_string(),
81            location: PythonDistributionLocation::Url {
82                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64_v2-unknown-linux-gnu-pgo-full.tar.zst".to_string(),
83                sha256: "5c826ddcc266b9df4435c359250c2fafc62cd38bf17d5e1ff45dd432f1462f38".to_string(),
84            },
85            target_triple: "x86_64_v2-unknown-linux-gnu".to_string(),
86            supports_prebuilt_extension_modules: true,
87        },
88        PythonDistributionRecord {
89            python_major_minor_version: "3.10".to_string(),
90            location: PythonDistributionLocation::Url {
91                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64_v3-unknown-linux-gnu-pgo-full.tar.zst".to_string(),
92                sha256: "a019f6daac0bb2b16d984760aa059d9ded4567254492f402f28671d0e0b8b28e".to_string(),
93            },
94            target_triple: "x86_64_v3-unknown-linux-gnu".to_string(),
95            supports_prebuilt_extension_modules: true,
96        },
97
98        // Linux musl.
99        PythonDistributionRecord {
100            python_major_minor_version: "3.8".to_string(),
101            location: PythonDistributionLocation::Url {
102                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-x86_64-unknown-linux-musl-noopt-full.tar.zst".to_string(),
103                sha256: "93a517597b419f75f16df7cda2b455c9a17751e4f5e337e04ca36a4c62f942e5".to_string(),
104            },
105            target_triple: "x86_64-unknown-linux-musl".to_string(),
106            supports_prebuilt_extension_modules: false,
107        },
108        PythonDistributionRecord {
109            python_major_minor_version: "3.9".to_string(),
110            location: PythonDistributionLocation::Url {
111                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64-unknown-linux-musl-noopt-full.tar.zst".to_string(),
112                sha256: "dd3df879e459fa0e8c8b269a13e73af58aec6a751bb36059628d5b02c3b90949".to_string(),
113            },
114            target_triple: "x86_64-unknown-linux-musl".to_string(),
115            supports_prebuilt_extension_modules: false,
116        },
117        PythonDistributionRecord {
118            python_major_minor_version: "3.9".to_string(),
119            location: PythonDistributionLocation::Url {
120                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64_v2-unknown-linux-musl-noopt-full.tar.zst".to_string(),
121                sha256: "7440e88d235ab0a4f8700921b08a0cdd63ed7b9623ef3d692ffad3a45b7af10f".to_string(),
122            },
123            target_triple: "x86_64_v2-unknown-linux-musl".to_string(),
124            supports_prebuilt_extension_modules: true,
125        },
126        PythonDistributionRecord {
127            python_major_minor_version: "3.9".to_string(),
128            location: PythonDistributionLocation::Url {
129                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64_v3-unknown-linux-musl-noopt-full.tar.zst".to_string(),
130                sha256: "56bb6bc70eb970bcae475f7daff442600022530a75771fc9f1d1fd52b4b5a0f3".to_string(),
131            },
132            target_triple: "x86_64_v3-unknown-linux-musl".to_string(),
133            supports_prebuilt_extension_modules: true,
134        },
135        PythonDistributionRecord {
136            python_major_minor_version: "3.10".to_string(),
137            location: PythonDistributionLocation::Url {
138                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-unknown-linux-musl-noopt-full.tar.zst".to_string(),
139                sha256: "771eaf1ed7371d6a5b5ab6d6979ac47febf0cb7506dbc0f368d58e2166076d0f".to_string(),
140            },
141            target_triple: "x86_64-unknown-linux-musl".to_string(),
142            supports_prebuilt_extension_modules: false,
143        },
144        PythonDistributionRecord {
145            python_major_minor_version: "3.10".to_string(),
146            location: PythonDistributionLocation::Url {
147                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64_v2-unknown-linux-musl-noopt-full.tar.zst".to_string(),
148                sha256: "fb26d7e789176e7f170286ad040fdb8235c00292b11563e44b598487f63ab8ea".to_string(),
149            },
150            target_triple: "x86_64_v2-unknown-linux-musl".to_string(),
151            supports_prebuilt_extension_modules: true,
152        },
153        PythonDistributionRecord {
154            python_major_minor_version: "3.10".to_string(),
155            location: PythonDistributionLocation::Url {
156                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64_v3-unknown-linux-musl-noopt-full.tar.zst".to_string(),
157                sha256: "cbb0a58a37e219369379a73d940af506dc791c7657e6922503d5cbf1e5513766".to_string(),
158            },
159            target_triple: "x86_64_v3-unknown-linux-musl".to_string(),
160            supports_prebuilt_extension_modules: true,
161        },
162
163        // The order here is important because we will choose the
164        // first one. We prefer shared distributions on Windows because
165        // they are more versatile: statically linked Windows distributions
166        // don't declspec(dllexport) Python symbols and can't load shared
167        // shared library Python extensions, making them a pain to work
168        // with.
169
170        // Windows shared.
171        PythonDistributionRecord {
172            python_major_minor_version: "3.8".to_string(),
173            location: PythonDistributionLocation::Url {
174                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-i686-pc-windows-msvc-shared-pgo-full.tar.zst".to_string(),
175                sha256: "e77b9bd187348d1afaddc56938fa3a208472899d87c28df218647be32402687a".to_string(),
176            },
177            target_triple: "i686-pc-windows-msvc".to_string(),
178            supports_prebuilt_extension_modules: true,
179        },
180        PythonDistributionRecord {
181            python_major_minor_version: "3.9".to_string(),
182            location: PythonDistributionLocation::Url {
183                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-i686-pc-windows-msvc-shared-pgo-full.tar.zst".to_string(),
184                sha256: "ce10ab19ff0540aeebc0c04eeecf467dc8f41f9efaebc794c5f2f33f8c05c406".to_string(),
185            },
186            target_triple: "i686-pc-windows-msvc".to_string(),
187            supports_prebuilt_extension_modules: true,
188        },
189        PythonDistributionRecord {
190            python_major_minor_version: "3.10".to_string(),
191            location: PythonDistributionLocation::Url {
192                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-i686-pc-windows-msvc-shared-pgo-full.tar.zst".to_string(),
193                sha256: "bb0cd9ef4f873f8fba51641702560ed707d117fbe978e08563926036c402cd18".to_string(),
194            },
195            target_triple: "i686-pc-windows-msvc".to_string(),
196            supports_prebuilt_extension_modules: true,
197        },
198        PythonDistributionRecord {
199            python_major_minor_version: "3.8".to_string(),
200            location: PythonDistributionLocation::Url {
201                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst".to_string(),
202                sha256: "4b24386dfd9f2e885932886c6faf417f5156f829d68add8282dd484e7d0e4ed7".to_string(),
203            },
204            target_triple: "x86_64-pc-windows-msvc".to_string(),
205            supports_prebuilt_extension_modules: true,
206        },
207        PythonDistributionRecord {
208            python_major_minor_version: "3.9".to_string(),
209            location: PythonDistributionLocation::Url {
210                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst".to_string(),
211                sha256: "d37203112d9f268ff2fcdbe84f3ad30f83f2d207fc121954f7146906d59b80f0".to_string(),
212            },
213            target_triple: "x86_64-pc-windows-msvc".to_string(),
214            supports_prebuilt_extension_modules: true,
215        },
216        PythonDistributionRecord {
217            python_major_minor_version: "3.10".to_string(),
218            location: PythonDistributionLocation::Url {
219                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst".to_string(),
220                sha256: "9902a5cb5c3b8eb13fb49e8804d16929161c38aa6d64f004d2317ca7c37a06cb".to_string(),
221            },
222            target_triple: "x86_64-pc-windows-msvc".to_string(),
223            supports_prebuilt_extension_modules: true,
224        },
225
226        // Windows static.
227        PythonDistributionRecord {
228            python_major_minor_version: "3.8".to_string(),
229            location: PythonDistributionLocation::Url {
230                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-i686-pc-windows-msvc-static-noopt-full.tar.zst".to_string(),
231                sha256: "56b01763560c01d14228ac7c1c55d270ce854137eb0bfdc71496e42efbbbe98b".to_string(),
232            },
233            target_triple: "i686-pc-windows-msvc".to_string(),
234            supports_prebuilt_extension_modules: false,
235        },
236        PythonDistributionRecord {
237            python_major_minor_version: "3.9".to_string(),
238            location: PythonDistributionLocation::Url {
239                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-i686-pc-windows-msvc-static-noopt-full.tar.zst".to_string(),
240                sha256: "0f3b191c7666bf4cbcad3f3f8128a41d2b170c77bfad1d6aa3fe7b2c247b3ea2".to_string(),
241            },
242            target_triple: "i686-pc-windows-msvc".to_string(),
243            supports_prebuilt_extension_modules: false,
244        },
245        PythonDistributionRecord {
246            python_major_minor_version: "3.10".to_string(),
247            location: PythonDistributionLocation::Url {
248                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-i686-pc-windows-msvc-static-noopt-full.tar.zst".to_string(),
249                sha256: "312a4dc2da25893ca9fee5ea33fc63a9f0758cb86426ebae375fb87feff387b0".to_string(),
250            },
251            target_triple: "i686-pc-windows-msvc".to_string(),
252            supports_prebuilt_extension_modules: false,
253        },
254        PythonDistributionRecord {
255            python_major_minor_version: "3.8".to_string(),
256            location: PythonDistributionLocation::Url {
257                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-x86_64-pc-windows-msvc-static-noopt-full.tar.zst".to_string(),
258                sha256: "4634fa1507979aeb8f462b239db54ea9b8f270550642cb17af45623fad9d4ce4".to_string(),
259            },
260            target_triple: "x86_64-pc-windows-msvc".to_string(),
261            supports_prebuilt_extension_modules: false,
262        },
263        PythonDistributionRecord {
264            python_major_minor_version: "3.9".to_string(),
265            location: PythonDistributionLocation::Url {
266                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64-pc-windows-msvc-static-noopt-full.tar.zst".to_string(),
267                sha256: "a6e8f8d2cb32f6ee86e5ec854e4f269465485ad5ac92a7941b00dca9f67ba64c".to_string(),
268            },
269            target_triple: "x86_64-pc-windows-msvc".to_string(),
270            supports_prebuilt_extension_modules: false,
271        },
272        PythonDistributionRecord {
273            python_major_minor_version: "3.10".to_string(),
274            location: PythonDistributionLocation::Url {
275                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-pc-windows-msvc-static-noopt-full.tar.zst".to_string(),
276                sha256: "bfdb46e24045d5c1b97d482db6aab5feeb8488e13a97cb0b1d323b4b34cde007".to_string(),
277            },
278            target_triple: "x86_64-pc-windows-msvc".to_string(),
279            supports_prebuilt_extension_modules: false,
280        },
281
282        // macOS.
283        PythonDistributionRecord {
284            python_major_minor_version: "3.8".to_string(),
285            location: PythonDistributionLocation::Url {
286                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-aarch64-apple-darwin-pgo-full.tar.zst".to_string(),
287                sha256: "844a817f620c5e41bc5f98480565500e801225a3c54fa08f6bce94d1deadf488".to_string(),
288            },
289            target_triple: "aarch64-apple-darwin".to_string(),
290            supports_prebuilt_extension_modules: true,
291        },
292        PythonDistributionRecord {
293            python_major_minor_version: "3.9".to_string(),
294            location: PythonDistributionLocation::Url {
295                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-aarch64-apple-darwin-pgo-full.tar.zst".to_string(),
296                sha256: "a83812be1383194760c5afcf85c51c553ab5e97ff2047688ced7f99aa15edda1".to_string(),
297            },
298            target_triple: "aarch64-apple-darwin".to_string(),
299            supports_prebuilt_extension_modules: true,
300        },
301        PythonDistributionRecord {
302            python_major_minor_version: "3.10".to_string(),
303            location: PythonDistributionLocation::Url {
304                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-aarch64-apple-darwin-pgo-full.tar.zst".to_string(),
305                sha256: "5a4a1128f6aa53a2cf6f748d0632da938cca4656c21688fbc564755ec4cd3519".to_string(),
306            },
307            target_triple: "aarch64-apple-darwin".to_string(),
308            supports_prebuilt_extension_modules: true,
309        },
310        PythonDistributionRecord {
311            python_major_minor_version: "3.8".to_string(),
312            location: PythonDistributionLocation::Url {
313                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.8.16%2B20221220-x86_64-apple-darwin-pgo-full.tar.zst".to_string(),
314                sha256: "47a11a91d1cb6754b2eea1a22adf293b24a106a00fe62c550b01164c1693dbc8".to_string(),
315            },
316            target_triple: "x86_64-apple-darwin".to_string(),
317            supports_prebuilt_extension_modules: true,
318        },
319        PythonDistributionRecord {
320            python_major_minor_version: "3.9".to_string(),
321            location: PythonDistributionLocation::Url {
322                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.9.16%2B20221220-x86_64-apple-darwin-pgo-full.tar.zst".to_string(),
323                sha256: "9bfcbe66e0984239341cd89985c117395fa9c604419b8ec706534f7760689631".to_string(),
324            },
325            target_triple: "x86_64-apple-darwin".to_string(),
326            supports_prebuilt_extension_modules: true,
327        },
328        PythonDistributionRecord {
329            python_major_minor_version: "3.10".to_string(),
330            location: PythonDistributionLocation::Url {
331                url: "https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-apple-darwin-pgo-full.tar.zst".to_string(),
332                sha256: "5c6d2b375f3944dc156c55544a13afa3ba0dc4bbc492135a3b7004a71f612cfd".to_string(),
333            },
334            target_triple: "x86_64-apple-darwin".to_string(),
335            supports_prebuilt_extension_modules: true,
336        },
337    ];
338
339    PythonDistributionCollection { dists }
340});