summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azure-pipelines.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 493e3fbd6..7b23fef61 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -101,8 +101,14 @@ stages:
# just pulling in gfortran
- script: |
set -xe
- # same version of gfortran as the wheel builds
- curl -L https://github.com/fxcoudert/gfortran-for-macOS/releases/download/4.9.0/gfortran-4.9.0-Mavericks.dmg -o gfortran.dmg
+ # same version of gfortran as the open-libs and numpy-wheel builds
+ curl -L https://github.com/MacPython/gfortran-install/raw/master/archives/gfortran-4.9.0-Mavericks.dmg -o gfortran.dmg
+ GFORTRAN_SHA256=$(shasum -a 256 gfortran.dmg)
+ KNOWN_SHA256="d2d5ca5ba8332d63bbe23a07201c4a0a5d7e09ee56f0298a96775f928c3c4b30 gfortran.dmg"
+ if [ "$GFORTRAN_SHA256" != "$KNOWN_SHA256" ]; then
+ echo sha256 mismatch
+ exit 1
+ fi
hdiutil attach -mountpoint /Volumes/gfortran gfortran.dmg
sudo installer -pkg /Volumes/gfortran/gfortran.pkg -target /
otool -L /usr/local/gfortran/lib/libgfortran.3.dylib