Disable libavif on iOS (for now).

This commit is contained in:
Russell Keith-Magee 2025-06-27 15:41:01 +08:00
parent 6d2cd7664d
commit ab9dd5ed05
No known key found for this signature in database
GPG Key ID: 3D2DAB6A37BB5BC3
3 changed files with 12 additions and 5 deletions

View File

@ -268,7 +268,10 @@ function build {
build_tiff
fi
build_libavif
if [[ -z "$IOS_SDK" ]]; then
# Short term workaround; buillib
build_libavif
fi
build_libpng
build_lcms2
build_openjpeg

View File

@ -18,14 +18,18 @@ def test_wheel_modules() -> None:
assert tkinter
except ImportError:
expected_modules.remove("tkinter")
elif sys.platform == "ios":
# tkinter is not available on iOS
expected_modules.remove("tkinter")
# libavif is not available on Windows for ARM64 architectures
if platform.machine() == "ARM64":
expected_modules.remove("avif")
elif sys.platform == "ios":
# tkinter is not available on iOS
expected_modules.remove("tkinter")
# libavif is not available on iOS (for now)
expected_modules.remove("avif")
assert set(features.get_supported_modules()) == expected_modules

View File

@ -133,7 +133,7 @@ test-sources = [
]
test-command = [
"python -m selftest",
"python -m pytest checks/check_wheel.py Tests",
"python -m pytest -vv checks/check_wheel.py Tests",
]
# There's no numpy wheel for iOS (yet...)