forked from python-pillow/Pillow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,543 changed files
with
0 additions
and
121,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Ensure fribidi is installed by the system. | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
# If Homebrew is on the path during the build, it may leak into the wheels. | ||
# However, we *do* need Homebrew to provide a copy of fribidi for | ||
# testing purposes so that we can verify the fribidi shim works as expected. | ||
if [[ "$(uname -m)" == "x86_64" ]]; then | ||
HOMEBREW_PREFIX=/usr/local | ||
else | ||
HOMEBREW_PREFIX=/opt/homebrew | ||
fi | ||
$HOMEBREW_PREFIX/bin/brew install fribidi | ||
|
||
# Add the lib folder for fribidi so that the vendored library can be found. | ||
# Don't use $HOMEWBREW_PREFIX/lib directly - use the lib folder where the | ||
# installed copy of fribidi is cellared. This ensures we don't pick up the | ||
# Homebrew version of any other library that we're dependent on (most notably, | ||
# freetype). | ||
export DYLD_LIBRARY_PATH=$(dirname $(realpath $HOMEBREW_PREFIX/lib/libfribidi.dylib)) | ||
elif [ "${AUDITWHEEL_POLICY::9}" == "musllinux" ]; then | ||
apk add curl fribidi | ||
else | ||
yum install -y fribidi | ||
fi | ||
|
||
python3 -m pip install numpy | ||
|
||
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 |
Oops, something went wrong.