Skip to content

Commit fc4a3e8

Browse files
committed
RHAIENG-948: fix(ppc): build failure due to missing zlib-devel to build pillow
``` line 20, in run_setup return super().run_setup(setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.tmpoAXecA/builds-v0/.tmpeN0QF3/lib64/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 1108, in <module> RequiredDependencyException: The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. ```
1 parent e8ea4ac commit fc4a3e8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,14 @@ else
386386
fi
387387
EOF
388388

389+
RUN /bin/bash <<'EOF'
390+
set -Eeuxo pipefail
391+
if [ "${TARGETARCH}" = "ppc64le" ]; then
392+
# required to compile pillow
393+
dnf install -y zlib-devel
394+
fi
395+
EOF
396+
389397
USER 1001:0
390398

391399
# Install Python packages and Jupyterlab extensions from pylock.toml

jupyter/datascience/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,14 @@ else
380380
fi
381381
EOF
382382

383+
RUN /bin/bash <<'EOF'
384+
set -Eeuxo pipefail
385+
if [ "${TARGETARCH}" = "ppc64le" ]; then
386+
# required to compile pillow
387+
dnf install -y zlib-devel
388+
fi
389+
EOF
390+
383391
USER 1001:0
384392

385393
# Install Python packages and Jupyterlab extensions from pylock.toml

0 commit comments

Comments
 (0)