Skip to content

Commit 3a6fc8b

Browse files
committed
Skip several dependencies for ppc64le
1 parent e6da1a2 commit 3a6fc8b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ function build {
280280
build_simple libxcb $LIBXCB_VERSION https://www.x.org/releases/individual/lib
281281

282282
build_libjpeg_turbo
283+
if [[ "$AUDITWHEEL_ARCH" == "ppc64le" ]]; then
284+
return
285+
fi
286+
283287
if [[ -n "$IS_MACOS" ]]; then
284288
# Custom tiff build to include jpeg; by default, configure won't include
285289
# headers/libs in the custom macOS/iOS prefix. Explicitly disable webp,

checks/check_wheel.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ def test_wheel_modules() -> None:
2626
# tkinter is not available on iOS
2727
expected_modules.remove("tkinter")
2828

29+
elif platform.processor() == "ppc64le":
30+
expected_modules -= {"freetype2", "littlecms2", "webp", "avif"}
31+
2932
assert set(features.get_supported_modules()) == expected_modules
3033

3134

3235
def test_wheel_codecs() -> None:
3336
expected_codecs = {"jpg", "jpg_2000", "zlib", "libtiff"}
37+
if platform.processor() == "ppc64le":
38+
expected_codecs -= {"jpg_2000", "libtiff"}
3439

3540
assert set(features.get_supported_codecs()) == expected_codecs
3641

@@ -51,5 +56,7 @@ def test_wheel_features() -> None:
5156
# Can't distribute raqm due to licensing, and there's no system version;
5257
# fribidi and harfbuzz won't be available if raqm isn't available.
5358
expected_features -= {"raqm", "fribidi", "harfbuzz"}
59+
elif platform.processor() == "ppc64le":
60+
expected_features -= {"raqm", "fribidi", "harfbuzz"}
5461

5562
assert set(features.get_supported_features()) == expected_features

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ environment.PATH = "$(pwd)/build/deps/iphonesimulator/bin:$PATH"
150150
select = "*-win32"
151151
test-requires = [ ]
152152

153+
[[tool.cibuildwheel.overrides]]
154+
select = "*_ppc64le"
155+
config-settings = "raqm=disable fribidi=disable imagequant=disable"
156+
test-requires = [ ]
157+
153158
[tool.black]
154159
exclude = "wheels/multibuild"
155160

0 commit comments

Comments
 (0)