Skip to content

Commit 11a6ba8

Browse files
jiridanekNash-123
andauthored
RHAIENG-1643: fix Pyarrow build for s390x (opendatahub-io#2623)
Signed-off-by: Nishan Acharya <[email protected]> Co-authored-by: Nishan Acharya <[email protected]>
1 parent d56ac81 commit 11a6ba8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
135135
git clone --depth 1 --branch "apache-arrow-17.0.0" https://github.com/apache/arrow.git && \
136136
cd arrow/cpp && \
137137
mkdir release && cd release && \
138+
ARROW_S3_FLAG="" && \
139+
if [ "$TARGETARCH" != "s390x" ]; then ARROW_S3_FLAG="-DARROW_S3=ON"; fi && \
138140
cmake -DCMAKE_BUILD_TYPE=Release \
139141
-DCMAKE_INSTALL_PREFIX=/usr/local \
140142
-DARROW_PYTHON=ON \
@@ -148,7 +150,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
148150
-DARROW_WITH_LZ4=OFF \
149151
-DARROW_WITH_ZSTD=OFF \
150152
-DARROW_WITH_SNAPPY=OFF \
151-
-DARROW_S3=ON \
153+
${ARROW_S3_FLAG} \
152154
-DARROW_SUBSTRAIT=ON \
153155
-DARROW_BUILD_TESTS=OFF \
154156
-DARROW_BUILD_BENCHMARKS=OFF \

0 commit comments

Comments
 (0)