Skip to content

Commit a89b3d5

Browse files
authored
Merge pull request #8424 from radarhere/harfbuzz
2 parents 58ef920 + 30fca7a commit a89b3d5

1 file changed

Lines changed: 11 additions & 25 deletions

File tree

.github/workflows/wheels-dependencies.sh

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ ARCHIVE_SDIR=pillow-depends-main
1616

1717
# Package versions for fresh source builds
1818
FREETYPE_VERSION=2.13.2
19-
if [[ -n "$IS_MACOS" ]] || ([[ "$MB_ML_VER" != 2014 ]] && [[ -z "$SANITIZER" ]]); then
20-
HARFBUZZ_VERSION=10.0.1
21-
else
22-
HARFBUZZ_VERSION=8.5.0
23-
fi
19+
HARFBUZZ_VERSION=10.0.1
2420
LIBPNG_VERSION=1.6.44
2521
JPEGTURBO_VERSION=3.0.4
2622
OPENJPEG_VERSION=2.5.2
@@ -65,21 +61,15 @@ function build_brotli {
6561
}
6662

6763
function build_harfbuzz {
68-
if [[ "$HARFBUZZ_VERSION" == 8.5.0 ]]; then
69-
export FREETYPE_LIBS=-lfreetype
70-
export FREETYPE_CFLAGS=-I/usr/local/include/freetype2/
71-
build_simple harfbuzz $HARFBUZZ_VERSION https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION tar.xz --with-freetype=yes --with-glib=no
72-
export FREETYPE_LIBS=""
73-
export FREETYPE_CFLAGS=""
74-
else
75-
local out_dir=$(fetch_unpack https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/$HARFBUZZ_VERSION.tar.xz harfbuzz-$HARFBUZZ_VERSION.tar.xz)
76-
(cd $out_dir \
77-
&& meson setup build --buildtype=release -Dfreetype=enabled -Dglib=disabled)
78-
(cd $out_dir/build \
79-
&& meson install)
80-
if [[ "$MB_ML_LIBC" == "manylinux" ]]; then
81-
cp /usr/local/lib64/libharfbuzz* /usr/local/lib
82-
fi
64+
python3 -m pip install meson ninja
65+
66+
local out_dir=$(fetch_unpack https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION/$HARFBUZZ_VERSION.tar.xz harfbuzz-$HARFBUZZ_VERSION.tar.xz)
67+
(cd $out_dir \
68+
&& meson setup build --buildtype=release -Dfreetype=enabled -Dglib=disabled)
69+
(cd $out_dir/build \
70+
&& meson install)
71+
if [[ "$MB_ML_LIBC" == "manylinux" ]]; then
72+
cp /usr/local/lib64/libharfbuzz* /usr/local/lib
8373
fi
8474
}
8575

@@ -155,11 +145,7 @@ if [[ -n "$IS_MACOS" ]]; then
155145
brew remove --ignore-dependencies webp
156146
fi
157147

158-
brew install meson pkg-config
159-
elif [[ -n "$IS_ALPINE" ]]; then
160-
apk add meson
161-
elif [[ "$HARFBUZZ_VERSION" != 8.5.0 ]]; then
162-
yum install -y meson
148+
brew install pkg-config
163149
fi
164150

165151
wrap_wheel_builder build

0 commit comments

Comments
 (0)