diff --git a/.github/workflows/wheels-dependencies.sh b/.github/workflows/wheels-dependencies.sh index 3969bff37..a4d45fc8e 100755 --- a/.github/workflows/wheels-dependencies.sh +++ b/.github/workflows/wheels-dependencies.sh @@ -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 diff --git a/checks/check_wheel.py b/checks/check_wheel.py index 6102ff3c3..e29ade580 100644 --- a/checks/check_wheel.py +++ b/checks/check_wheel.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 188a8542a..0e347b161 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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...)