Skip to content

Commit f60d629

Browse files
committed
RHAIENG-948: fix(ppc): build failure due to missing numpy>=1.16.6 in aipcc wheel index
``` + pip install --no-cache-dir /tmp/wheels/pyarrow-17.0.0-cp312-cp312-linux_ppc64le.whl Looking in indexes: https://console.redhat.com/api/pypi/public-rhai/rhoai/3.0/cpu-ubi9/simple/ Processing /tmp/wheels/pyarrow-17.0.0-cp312-cp312-linux_ppc64le.whl INFO: pip is looking at multiple versions of pyarrow to determine which version is compatible with other requirements. This could take a while. ERROR: Could not find a version that satisfies the requirement numpy>=1.16.6 (from pyarrow) (from versions: none) ERROR: No matching distribution found for numpy>=1.16.6 ```
1 parent 0db7efb commit f60d629

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ COPY --from=pyarrow-builder /tmp/wheels /tmp/wheels
337337
RUN /bin/bash <<'EOF'
338338
set -Eeuxo pipefail
339339
if [ "$TARGETARCH" = "ppc64le" ] || [ "$TARGETARCH" = "s390x" ]; then
340-
pip install --no-cache-dir /tmp/wheels/*.whl
340+
# aipcc is lacking numpy>=1.16.6
341+
pip install --no-cache-dir --extra-index-url https://pypi.org/simple /tmp/wheels/*.whl
341342
else
342343
echo "Skipping wheel install for $TARGETARCH"
343344
fi
@@ -351,7 +352,8 @@ COPY --from=onnx-builder /root/onnx_wheel/ /onnxwheels/
351352
RUN /bin/bash <<'EOF'
352353
set -Eeuxo pipefail
353354
if [ "${TARGETARCH}" = "ppc64le" ]; then
354-
pip install --no-cache-dir /onnxwheels/*.whl
355+
# aipcc is sure to lack something, so add extra index preemptively
356+
pip install --no-cache-dir --extra-index-url https://pypi.org/simple /onnxwheels/*.whl
355357
else
356358
echo "Skipping ONNX/OpenBLAS install on non-Power"
357359
fi

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ COPY --from=pyarrow-builder /tmp/wheels /tmp/wheels
337337
RUN /bin/bash <<'EOF'
338338
set -Eeuxo pipefail
339339
if [ "$TARGETARCH" = "ppc64le" ] || [ "$TARGETARCH" = "s390x" ]; then
340-
pip install --no-cache-dir /tmp/wheels/*.whl
340+
# aipcc is lacking numpy>=1.16.6
341+
pip install --no-cache-dir --extra-index-url https://pypi.org/simple /tmp/wheels/*.whl
341342
else
342343
echo "Skipping wheel install for $TARGETARCH"
343344
fi
@@ -351,7 +352,8 @@ COPY --from=onnx-builder /root/onnx_wheel/ /onnxwheels/
351352
RUN /bin/bash <<'EOF'
352353
set -Eeuxo pipefail
353354
if [ "${TARGETARCH}" = "ppc64le" ]; then
354-
pip install --no-cache-dir /onnxwheels/*.whl
355+
# aipcc is sure to lack something, so add extra index preemptively
356+
pip install --no-cache-dir --extra-index-url https://pypi.org/simple /onnxwheels/*.whl
355357
else
356358
echo "Skipping ONNX/OpenBLAS install on non-Power"
357359
fi

0 commit comments

Comments
 (0)