2023-11-14 15:23:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
brew install fribidi
|
|
|
|
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
|
2023-11-15 05:21:38 +03:00
|
|
|
elif [ "${AUDITWHEEL_POLICY::9}" == "musllinux" ]; then
|
2023-11-14 15:23:46 +03:00
|
|
|
apk add curl fribidi
|
|
|
|
else
|
2023-11-15 06:09:34 +03:00
|
|
|
yum install -y fribidi
|
2023-11-14 15:23:46 +03:00
|
|
|
fi
|
2023-11-15 05:21:38 +03:00
|
|
|
if [ "${AUDITWHEEL_POLICY::9}" != "musllinux" ]; then
|
2023-11-14 15:23:46 +03:00
|
|
|
python3 -m pip install numpy
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -d "test-images-main" ]; then
|
|
|
|
curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
|
|
|
|
unzip pillow-test-images.zip
|
|
|
|
mv test-images-main/* Tests/images
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Runs tests
|
|
|
|
python3 selftest.py
|
2023-01-01 05:18:30 +03:00
|
|
|
python3 -m pytest Tests/check_wheel.py
|
2023-11-14 15:23:46 +03:00
|
|
|
python3 -m pytest
|