diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-03-13 18:56:10 -0700 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-03-13 18:56:10 -0700 |
commit | a8d75a93cf89efbc965e9925b820c9769537a891 (patch) | |
tree | d5b5d78245e1f3f584b9f542e0f2da894d0b8b40 /azure-pipelines.yml | |
parent | eea136ffadf75b92d8125678ce196367b1e3836c (diff) | |
download | numpy-a8d75a93cf89efbc965e9925b820c9769537a891.tar.gz |
TST: openblas for Azure MacOS
* use pre-built openblas binary
for MacOS Azure CI builds to more
closely match the build scenario
used by numpy-wheels
* similarly, roll back gfortran
version to 4.9 to better match
wheel builds
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c085c38f3..d65d1e41f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -59,21 +59,33 @@ jobs: # two C compilers, but with homebrew looks like we're # now stuck getting the full gcc toolchain instead of # just pulling in gfortran - - script: HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc + - script: | + # same version of gfortran as the wheel builds + brew install gcc49 + # manually link critical gfortran libraries + ln -s /usr/local/Cellar/gcc@4.9/4.9.4_1/lib/gcc/4.9/libgfortran.3.dylib /usr/local/lib/libgfortran.3.dylib + ln -s /usr/local/Cellar/gcc@4.9/4.9.4_1/lib/gcc/4.9/libquadmath.0.dylib /usr/local/lib/libquadmath.0.dylib + # manually symlink gfortran-4.9 to plain gfortran + # for f2py + ln -s /usr/local/bin/gfortran-4.9 /usr/local/bin/gfortran displayName: 'make gfortran available on mac os vm' + # use the pre-built openblas binary that most closely + # matches our MacOS wheel builds -- currently based + # primarily on file size / name details + - script: | + wget "https://3f23b170c54c2533c070-1c8a9b3114517dc5fe17b7c3f8c63a43.ssl.cf2.rackcdn.com/openblas-v0.3.3-186-g701ea883-macosx_10_9_intel-gf_1becaaa.tar.gz" + tar -zxvf openblas-v0.3.3-186-g701ea883-macosx_10_9_intel-gf_1becaaa.tar.gz + # manually link to appropriate system paths + cp ./usr/local/lib/* /usr/local/lib/ + cp ./usr/local/include/* /usr/local/include/ + displayName: 'install pre-built openblas' - script: python -m pip install --upgrade pip setuptools wheel displayName: 'Install tools' - script: python -m pip install cython nose pytz pytest pickle5 vulture docutils sphinx>=1.8.3 numpydoc matplotlib displayName: 'Install dependencies; some are optional to avoid test skips' - script: /bin/bash -c "! vulture . --min-confidence 100 --exclude doc/,numpy/distutils/ | grep 'unreachable'" displayName: 'Check for unreachable code paths in Python modules' - # NOTE: init_dgelsd failed init issue with current ACCELERATE / - # LAPACK configuration on Azure macos image; at the time of writing - # this plagues homebrew / macports NumPy builds, but we will - # circumvent for now by aggressively disabling acceleration for - # macos NumPy builds / tests; ACCELERATE=None on its own is not - # sufficient - # also, might as well prefer usage of clang over gcc proper + # prefer usage of clang over gcc proper # to match likely scenario on many user mac machines - script: python setup.py build -j 4 install displayName: 'Build NumPy' |