Install NumPy with OpenBLAS on macOS

This commit is contained in:
Andrew Murray 2020-06-28 14:57:57 +10:00
parent f995a9ec28
commit 505e915516
2 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ env:
- PLAT=x86_64
- UNICODE_WIDTH=32
- BUILD_DEPENDS=""
- TEST_DEPENDS="pytest pytest-cov numpy"
- TEST_DEPENDS="pytest pytest-cov"
- MACOSX_DEPLOYMENT_TARGET=10.10
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
# Following generated with

View File

@ -91,6 +91,12 @@ EXP_MODULES="freetype2 littlecms2 pil tkinter webp"
EXP_FEATURES="transp_webp webp_anim webp_mux xcb"
function run_tests {
if [ -n "$IS_OSX" ]; then
brew install openblas
echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg
fi
pip install numpy
# Runs tests on installed distribution from an empty directory
(cd ../Pillow && run_tests_in_repo)
# Test against expected codecs, modules and features