Skip to content

Commit 36eebb6

Browse files
committed
feat: add resilient fetch script for dependency downloads
- Introduced a new script `_fetch.sh` to enhance the reliability of downloading tarballs from multiple mirrors with retry logic. - Updated existing build scripts to utilize `_fetch.sh`, ensuring robust handling of transient network issues during dependency retrieval. - This change improves the overall stability of the build process across various Python versions and architectures.
1 parent f8d71bf commit 36eebb6

40 files changed

Lines changed: 323 additions & 48 deletions

2.7/x86/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
3737
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
3838
bison flex gawk patch
3939

40+
COPY ["common/build/deplib/_fetch.sh", "."]
41+
4042
# =========== musl ===========
4143
FROM --platform=linux/386 debian:bookworm AS musl_builder
4244
ARG DEBIAN_FRONTEND=noninteractive

2.7/x86_64/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
3737
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
3838
bison flex gawk patch
3939

40+
COPY ["common/build/deplib/_fetch.sh", "."]
41+
4042
# =========== musl ===========
4143
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
4244
ARG DEBIAN_FRONTEND=noninteractive

3.10/x86/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/386 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

3.10/x86_64/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

3.11/x86/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/386 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

3.11/x86_64/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

3.12/x86/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/386 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

3.12/x86_64/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

3.13/x86/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/386 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

3.13/x86_64/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN set -eux && apk add --no-cache ca-certificates tzdata && \
2525
libc-dev libnsl-dev libtirpc-dev linux-headers make pax-utils tk tk-dev util-linux-dev wget \
2626
bison flex gawk patch
2727

28+
COPY ["common/build/deplib/_fetch.sh", "."]
29+
2830
# # =========== musl ===========
2931
FROM --platform=linux/amd64 debian:bookworm AS musl_builder
3032
ARG DEBIAN_FRONTEND=noninteractive

0 commit comments

Comments
 (0)