mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Install NumPy with OpenBLAS on macOS
This commit is contained in:
parent
f995a9ec28
commit
505e915516
|
@ -5,7 +5,7 @@ env:
|
||||||
- PLAT=x86_64
|
- PLAT=x86_64
|
||||||
- UNICODE_WIDTH=32
|
- UNICODE_WIDTH=32
|
||||||
- BUILD_DEPENDS=""
|
- BUILD_DEPENDS=""
|
||||||
- TEST_DEPENDS="pytest pytest-cov numpy"
|
- TEST_DEPENDS="pytest pytest-cov"
|
||||||
- MACOSX_DEPLOYMENT_TARGET=10.10
|
- MACOSX_DEPLOYMENT_TARGET=10.10
|
||||||
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
|
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
|
||||||
# Following generated with
|
# Following generated with
|
||||||
|
|
|
@ -91,6 +91,12 @@ EXP_MODULES="freetype2 littlecms2 pil tkinter webp"
|
||||||
EXP_FEATURES="transp_webp webp_anim webp_mux xcb"
|
EXP_FEATURES="transp_webp webp_anim webp_mux xcb"
|
||||||
|
|
||||||
function run_tests {
|
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
|
# Runs tests on installed distribution from an empty directory
|
||||||
(cd ../Pillow && run_tests_in_repo)
|
(cd ../Pillow && run_tests_in_repo)
|
||||||
# Test against expected codecs, modules and features
|
# Test against expected codecs, modules and features
|
||||||
|
|
Loading…
Reference in New Issue
Block a user