2019-09-22 23:09:59 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-06-21 10:03:15 +03:00
|
|
|
brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype openblas
|
2019-09-22 23:09:59 +03:00
|
|
|
|
|
|
|
PYTHONOPTIMIZE=0 pip install cffi
|
|
|
|
pip install coverage
|
|
|
|
pip install olefile
|
|
|
|
pip install -U pytest
|
|
|
|
pip install -U pytest-cov
|
|
|
|
pip install pyroma
|
|
|
|
pip install test-image-results
|
2020-06-21 10:03:15 +03:00
|
|
|
|
|
|
|
echo -e "[openblas]\nlibraries = openblas\nlibrary_dirs = /usr/local/opt/openblas/lib" >> ~/.numpy-site.cfg
|
2020-10-14 21:26:45 +03:00
|
|
|
# TODO Remove condition when numpy supports 3.10
|
|
|
|
if ! [ "$GHA_PYTHON_VERSION" == "3.10-dev" ]; then pip install numpy ; fi
|
2019-09-22 23:09:59 +03:00
|
|
|
|
2020-10-06 17:54:41 +03:00
|
|
|
# TODO Remove when 3.8 / 3.9 includes setuptools 49.3.2+:
|
|
|
|
if [ "$GHA_PYTHON_VERSION" == "3.8" ]; then pip install -U "setuptools>=49.3.2" ; fi
|
2020-10-06 17:28:42 +03:00
|
|
|
if [ "$GHA_PYTHON_VERSION" == "3.9" ]; then pip install -U "setuptools>=49.3.2" ; fi
|
2020-08-13 12:59:52 +03:00
|
|
|
|
2019-09-22 23:09:59 +03:00
|
|
|
# extra test images
|
|
|
|
pushd depends && ./install_extra_test_images.sh && popd
|