Skip to content

Commit 0e1a16a

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 9ded38f + 737c14f commit 0e1a16a

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

ci/cached-builds/storage.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ driver = "overlay"
99
graphroot = "/home/runner/.local/share/containers/storage"
1010
runroot = "/home/runner/.local/share/containers/storage"
1111

12+
# https://www.redhat.com/en/blog/speed-containers-podman-raspberry-pi
1213
transient_store = true
1314

1415
[storage.options]

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ COPY ${TRUSTYAI_SOURCE_CODE}/pylock.toml ./
168168
RUN --mount=type=cache,from=whl-cache,source=/root/OpenBLAS/,target=/OpenBlas/,rw \
169169
bash -c ' \
170170
if [[ $(uname -m) == "ppc64le" ]]; then \
171-
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm; \
172-
dnf install -y libraqm libimagequant; \
173171
PREFIX=/usr/ make install -C /OpenBlas; \
174172
fi '
175173

jupyter/trustyai/ubi9-python-3.12/devel_env_setup.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ if [[ $(uname -m) == "ppc64le" ]]; then
1313

1414
# install development packages
1515
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
16-
dnf install -y fribidi-devel gcc-toolset-13 lcms2-devel libimagequant-devel \
16+
# patchelf: needed by `auditwheel repair`
17+
dnf install -y fribidi-devel gcc-toolset-13 lcms2-devel libimagequant-devel patchelf \
1718
libraqm-devel openjpeg2-devel tcl-devel tk-devel unixODBC-devel
1819

1920
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -80,6 +81,19 @@ if [[ $(uname -m) == "ppc64le" ]]; then
8081
--build-type=release --bundle-arrow-cpp \
8182
bdist_wheel --dist-dir ${WHEELS_DIR}
8283

84+
# Pillow (use auditwheel repaired wheel to avoid pulling runtime libs from EPEL)
85+
cd ${CURDIR}
86+
PILLOW_VERSION=$(grep -A1 '"pillow"' pylock.toml | grep -Eo '\b[0-9\.]+\b')
87+
cd ${TMP}
88+
git clone --recursive https://github.com/python-pillow/Pillow.git -b ${PILLOW_VERSION}
89+
cd Pillow
90+
uv build --wheel --out-dir /pillowwheel
91+
: ================= Fix Pillow Wheel ====================
92+
cd /pillowwheel
93+
uv pip install auditwheel
94+
auditwheel repair pillow*.whl
95+
mv wheelhouse/pillow*.whl ${WHEELS_DIR}
96+
8397
ls -ltr ${WHEELS_DIR}
8498

8599
cd ${CURDIR}

0 commit comments

Comments
 (0)