mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-15 06:07:33 +03:00
534d82119b
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
29 lines
791 B
Bash
Executable File
29 lines
791 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
brew install fribidi
|
|
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
|
|
if [ -f /opt/homebrew/lib/libfribidi.dylib ]; then
|
|
sudo cp /opt/homebrew/lib/libfribidi.dylib /usr/local/lib
|
|
fi
|
|
elif [ "${AUDITWHEEL_POLICY::9}" == "musllinux" ]; then
|
|
apk add curl fribidi
|
|
else
|
|
yum install -y fribidi
|
|
fi
|
|
if [ "${AUDITWHEEL_POLICY::9}" != "musllinux" ]; then
|
|
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
|
|
python3 -m pytest Tests/check_wheel.py
|
|
python3 -m pytest
|