Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions p/pyarrow/pyarrow_15.0.1_ubi_9.3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand Down Expand Up @@ -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
Expand All @@ -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 \
..
Expand All @@ -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
Expand Down
Loading