mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-15 09:44:46 +03:00
Skip several dependencies for ppc64le
This commit is contained in:
parent
8317812214
commit
6fde8d5aac
4
.github/workflows/wheels-dependencies.sh
vendored
4
.github/workflows/wheels-dependencies.sh
vendored
|
@ -276,6 +276,10 @@ function build {
|
||||||
build_simple libxcb $LIBXCB_VERSION https://www.x.org/releases/individual/lib
|
build_simple libxcb $LIBXCB_VERSION https://www.x.org/releases/individual/lib
|
||||||
|
|
||||||
build_libjpeg_turbo
|
build_libjpeg_turbo
|
||||||
|
if [[ "$AUDITWHEEL_ARCH" == "ppc64le" ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "$IS_MACOS" ]]; then
|
if [[ -n "$IS_MACOS" ]]; then
|
||||||
# Custom tiff build to include jpeg; by default, configure won't include
|
# Custom tiff build to include jpeg; by default, configure won't include
|
||||||
# headers/libs in the custom macOS/iOS prefix. Explicitly disable webp,
|
# headers/libs in the custom macOS/iOS prefix. Explicitly disable webp,
|
||||||
|
|
|
@ -27,11 +27,16 @@ def test_wheel_modules() -> None:
|
||||||
# tkinter is not available on iOS
|
# tkinter is not available on iOS
|
||||||
expected_modules.remove("tkinter")
|
expected_modules.remove("tkinter")
|
||||||
|
|
||||||
|
elif platform.processor() == "ppc64le":
|
||||||
|
expected_modules -= {"freetype2", "littlecms2", "webp", "avif"}
|
||||||
|
|
||||||
assert set(features.get_supported_modules()) == expected_modules
|
assert set(features.get_supported_modules()) == expected_modules
|
||||||
|
|
||||||
|
|
||||||
def test_wheel_codecs() -> None:
|
def test_wheel_codecs() -> None:
|
||||||
expected_codecs = {"jpg", "jpg_2000", "zlib", "libtiff"}
|
expected_codecs = {"jpg", "jpg_2000", "zlib", "libtiff"}
|
||||||
|
if platform.processor() == "ppc64le":
|
||||||
|
expected_codecs -= {"jpg_2000", "libtiff"}
|
||||||
|
|
||||||
assert set(features.get_supported_codecs()) == expected_codecs
|
assert set(features.get_supported_codecs()) == expected_codecs
|
||||||
|
|
||||||
|
@ -54,5 +59,7 @@ def test_wheel_features() -> None:
|
||||||
# Can't distribute raqm due to licensing, and there's no system version;
|
# Can't distribute raqm due to licensing, and there's no system version;
|
||||||
# fribidi and harfbuzz won't be available if raqm isn't available.
|
# fribidi and harfbuzz won't be available if raqm isn't available.
|
||||||
expected_features -= {"raqm", "fribidi", "harfbuzz"}
|
expected_features -= {"raqm", "fribidi", "harfbuzz"}
|
||||||
|
elif platform.processor() == "ppc64le":
|
||||||
|
expected_features -= {"raqm", "fribidi", "harfbuzz"}
|
||||||
|
|
||||||
assert set(features.get_supported_features()) == expected_features
|
assert set(features.get_supported_features()) == expected_features
|
||||||
|
|
|
@ -150,6 +150,11 @@ environment.PATH = "$(pwd)/build/deps/iphonesimulator/bin:$PATH"
|
||||||
select = "*-win32"
|
select = "*-win32"
|
||||||
test-requires = [ ]
|
test-requires = [ ]
|
||||||
|
|
||||||
|
[[tool.cibuildwheel.overrides]]
|
||||||
|
select = "*_ppc64le"
|
||||||
|
config-settings = "raqm=disable fribidi=disable imagequant=disable"
|
||||||
|
test-requires = [ ]
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
exclude = "wheels/multibuild"
|
exclude = "wheels/multibuild"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user