Skip to content

Commit aeba083

Browse files
authored
downloads: Switch NASM and ftp.gnu.org sources to mirrors (#796)
1 parent 8774868 commit aeba083

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

pythonbuild/downloads.py

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

5+
# Several files here are mirrored from their upstream sources due to flaky
6+
# downloads from upstream hosts (either intentional rate limiting or general
7+
# low-availability / non-CDN infrastructure) and to reduce load on them. To
8+
# update a file, push the new artifact to github.com/astral-sh/mirror (without
9+
# removing the old artifact) and then update here once GitHub Pages has
10+
# deployed. Feel free to point directly to the upstream source while working on
11+
# a PR, especially if you don't have push access to astral-sh/mirror or are
12+
# unsure if the PR will land, but we should make sure to switch back to the
13+
# mirror shortly after landing the dependency.
14+
515
DOWNLOADS = {
616
"autoconf": {
7-
"url": "https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.gz",
17+
# Mirrored from https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.gz
18+
"url": "https://astral-sh.github.io/mirror/files/autoconf-2.72.tar.gz",
819
"size": 2143794,
920
"sha256": "afb181a76e1ee72832f6581c0eddf8df032b83e2e0239ef79ebedc4467d92d6e",
1021
"version": "2.72",
@@ -20,14 +31,14 @@
2031
"license_file": "LICENSE.bdb.txt",
2132
},
2233
"binutils": {
23-
"url": "https://ftp.gnu.org/gnu/binutils/binutils-2.43.tar.xz",
34+
# Mirrored from https://ftp.gnu.org/gnu/binutils/binutils-2.43.tar.xz
35+
"url": "https://astral-sh.github.io/mirror/files/binutils-2.43.tar.xz",
2436
"size": 28175768,
2537
"sha256": "b53606f443ac8f01d1d5fc9c39497f2af322d99e14cea5c0b4b124d630379365",
2638
"version": "2.43",
2739
},
2840
"bzip2": {
29-
# Mirror of `https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz` due to
30-
# rate limiting
41+
# Mirrored from https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
3142
"url": "https://astral-sh.github.io/mirror/files/bzip2-1.0.8.tar.gz",
3243
"size": 810029,
3344
"sha256": "ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269",
@@ -200,7 +211,8 @@
200211
"version": "20.1.4+20250511",
201212
},
202213
"m4": {
203-
"url": "https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz",
214+
# Mirrored from https://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz
215+
"url": "https://astral-sh.github.io/mirror/files/m4-1.4.19.tar.xz",
204216
"size": 1654908,
205217
"sha256": "63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af96",
206218
"version": "1.4.19",
@@ -229,7 +241,8 @@
229241
"version": "1.2.5",
230242
},
231243
"ncurses": {
232-
"url": "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.5.tar.gz",
244+
# Mirrored from https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.5.tar.gz
245+
"url": "https://astral-sh.github.io/mirror/files/ncurses-6.5.tar.gz",
233246
"size": 3688489,
234247
"sha256": "136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6",
235248
"version": "6.5",
@@ -258,7 +271,8 @@
258271
"license_file": "LICENSE.openssl-3.txt",
259272
},
260273
"nasm-windows-bin": {
261-
"url": "https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/win64/nasm-2.16.03-win64.zip",
274+
# Mirrored from https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/win64/nasm-2.16.03-win64.zip
275+
"url": "https://astral-sh.github.io/mirror/files/nasm-2.16.03-win64.zip",
262276
"size": 513543,
263277
"sha256": "3ee4782247bcb874378d02f7eab4e294a84d3d15f3f6ee2de2f47a46aa7226e6",
264278
"version": "2.16.03",
@@ -276,7 +290,8 @@
276290
"version": "24.3.1",
277291
},
278292
"readline": {
279-
"url": "https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz",
293+
# Mirrored from https://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz
294+
"url": "https://astral-sh.github.io/mirror/files/readline-8.2.tar.gz",
280295
"size": 3043952,
281296
"sha256": "3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35",
282297
"version": "8.2",

0 commit comments

Comments
 (0)