Skip to content

Commit 0b24ee6

Browse files
committed
CI: Use GitHub mirror to download GMP and MPFR
1 parent 80f941f commit 0b24ee6

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

bin/pyodide_build_dependencies.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,21 @@ if [ -z "$WASM_LIBRARY_DIR" ]; then
4343
exit 1
4444
fi
4545

46+
# Sets versions of GMP, MPFR and FLINT:
47+
4648
source bin/build_variables.sh
4749

50+
# Download mirrored copy of source distributions for GMP and MPFR
4851

49-
# ---------------------------Build GMP ----------------------------------#
52+
git clone https://github.com/oscarbenjamin/gmp_mirror.git
53+
cp gmp_mirror/gmp-$GMPVER.tar.xz .
54+
cp gmp_mirror/mpfr-$MPFRVER.tar.gz .
55+
tar -xf gmp-$GMPVER.tar.xz
56+
tar -xf mpfr-$MPFRVER.tar.gz
5057

5158

52-
curl -L https://ftp.gnu.org/gnu/gmp/gmp-$GMPVER.tar.xz -o gmp-$GMPVER.tar.xz
53-
tar -xf gmp-$GMPVER.tar.xz
59+
# ---------------------------Build GMP ----------------------------------#
60+
5461

5562
cd gmp-$GMPVER
5663

@@ -71,9 +78,6 @@ cd ..
7178
# ---------------------------Build MPFR ----------------------------------#
7279

7380

74-
curl -L https://ftp.gnu.org/gnu/mpfr/mpfr-$MPFRVER.tar.xz -o mpfr-$MPFRVER.tar.xz
75-
tar -xf mpfr-$MPFRVER.tar.xz
76-
7781
cd mpfr-$MPFRVER
7882

7983
emconfigure ./configure \

0 commit comments

Comments
 (0)