Skip to content

Commit b1f7ba0

Browse files
authored
Merge pull request #8772 from radarhere/zlib_macos
Revert to zlib on macOS < 10.15
2 parents f673f3e + 6c7917d commit b1f7ba0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ else
4949
fi
5050
TIFF_VERSION=4.7.0
5151
LCMS2_VERSION=2.17
52+
ZLIB_VERSION=1.3.1
5253
ZLIB_NG_VERSION=2.2.4
5354
LIBWEBP_VERSION=1.5.0
5455
BZIP2_VERSION=1.0.8
@@ -110,7 +111,11 @@ function build {
110111
if [ -z "$IS_ALPINE" ] && [ -z "$SANITIZER" ] && [ -z "$IS_MACOS" ]; then
111112
yum remove -y zlib-devel
112113
fi
113-
build_zlib_ng
114+
if [[ -n "$IS_MACOS" ]] && [[ "$MACOSX_DEPLOYMENT_TARGET" == "10.10" || "$MACOSX_DEPLOYMENT_TARGET" == "10.13" ]]; then
115+
build_new_zlib
116+
else
117+
build_zlib_ng
118+
fi
114119

115120
build_simple xcb-proto 1.17.0 https://xorg.freedesktop.org/archive/individual/proto
116121
if [ -n "$IS_MACOS" ]; then

Tests/check_wheel.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
from __future__ import annotations
22

3+
import platform
34
import sys
45

56
from PIL import features
67

8+
from .helper import is_pypy
9+
710

811
def test_wheel_modules() -> None:
912
expected_modules = {"pil", "tkinter", "freetype2", "littlecms2", "webp"}
@@ -40,5 +43,7 @@ def test_wheel_features() -> None:
4043

4144
if sys.platform == "win32":
4245
expected_features.remove("xcb")
46+
elif sys.platform == "darwin" and not is_pypy() and platform.processor() != "arm":
47+
expected_features.remove("zlib_ng")
4348

4449
assert set(features.get_supported_features()) == expected_features

0 commit comments

Comments
 (0)