mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-27 16:39:49 +03:00
Disable libavif on iOS (for now).
This commit is contained in:
parent
6d2cd7664d
commit
ab9dd5ed05
3
.github/workflows/wheels-dependencies.sh
vendored
3
.github/workflows/wheels-dependencies.sh
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user