From 9a11bd75a9d56494bd98ffe56ffa351dab2d3567 Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Thu, 8 Jan 2026 19:42:31 +0000 Subject: [PATCH] updated build script for 18.0.0 to enable flight support wihtin wheel --- p/pyarrow/pyarrow_15.0.1_ubi_9.3.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/p/pyarrow/pyarrow_15.0.1_ubi_9.3.sh b/p/pyarrow/pyarrow_15.0.1_ubi_9.3.sh index 9a6bd20226..78214a288d 100644 --- a/p/pyarrow/pyarrow_15.0.1_ubi_9.3.sh +++ b/p/pyarrow/pyarrow_15.0.1_ubi_9.3.sh @@ -26,7 +26,7 @@ PACKAGE_DIR=./arrow/python CURRENT_DIR="${PWD}" # Install necessary dependencies -yum install -y git wget gcc gcc-c++ python python3-devel python3 python3-pip openssl-devel cmake +yum install -y git wget gcc gcc-c++ python python3-devel python3 python3-pip openssl-devel zlib-devel cmake echo "Dependencies installed." @@ -63,9 +63,10 @@ sed -i '/cdef object alloc_c_array(ArrowArray\*\* c_array)/s/ noexcept//' python sed -i '/cdef object alloc_c_stream(ArrowArrayStream\*\* c_stream)/s/ noexcept//' python/pyarrow/types.pxi echo "Fixes applied." +pip install cython wheel numpy==2.0.2 setuptools-scm pip install -r python/requirements-build.txt -pip install cython wheel numpy==1.26.4 setuptools-scm + echo "Preparing for build..." mkdir cpp/build @@ -88,6 +89,7 @@ cmake -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \ -DARROW_WITH_SNAPPY=ON \ -DARROW_WITH_ZLIB=ON \ -DARROW_WITH_ZSTD=ON \ + -DARROW_FLIGHT=ON \ -DPARQUET_REQUIRE_ENCRYPTION=ON \ -DBUILD_SHARED_LIBS=ON \ .. @@ -101,6 +103,8 @@ export PYARROW_WITH_DATASET=1 export PYARROW_PARALLEL=4 export PYARROW_BUILD_TYPE="release" export PYARROW_BUNDLE_ARROW_CPP_HEADERS=1 +export PYARROW_WITH_FLIGHT=1 + version=$(echo "$PACKAGE_VERSION" | sed 's/^apache-arrow-//') export SETUPTOOLS_SCM_PRETEND_VERSION=$version