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 build_tiff
fi fi
if [[ -z "$IOS_SDK" ]]; then
# Short term workaround; buillib
build_libavif build_libavif
fi
build_libpng build_libpng
build_lcms2 build_lcms2
build_openjpeg build_openjpeg

View File

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

View File

@ -133,7 +133,7 @@ test-sources = [
] ]
test-command = [ test-command = [
"python -m selftest", "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...) # There's no numpy wheel for iOS (yet...)