lukedg97 commented on issue #45642:
URL: https://github.com/apache/arrow/issues/45642#issuecomment-2715186399

   @amoeba 
   
   added your suggested flags and got this error at the python build step
   ```
   ...
   -- Building PyArrow with Flight
   CMake Error at CMakeLists.txt:530 (message):
     You must build Arrow C++ with ARROW_BUILD_SHARED=ON
   
   
   -- Configuring incomplete, errors occurred!
   error: command '/opt/homebrew/bin/cmake' failed with exit code 1
   ```
   at this command:
   ```
   python3.13 setup.py build_ext --build-type=$ARROW_BUILD_TYPE \
            --bundle-arrow-cpp bdist_wheel
   ```
   
   
   
   ### Reference
   for reference here is my current full .sh script which I call with `source`
   ```
   venv_name="pyarrow-dev"
   
   if [ ! -d "$venv_name" ]; then
     echo "Creating virtual environment: $venv_name"
     python3.13 -m venv "$venv_name"
   else
     echo "Virtual environment '$venv_name' already exists."
   fi
   
   source "$venv_name/bin/activate"
   
   python3.13 -m pip install -r arrow/python/requirements-build.txt
   
   pushd arrow/python
   git clean -Xfd .
   popd
   
   rm -rf dist
   mkdir dist
   
   export ARROW_HOME=$(pwd)/dist
   export LD_LIBRARY_PATH=$(pwd)/dist/lib:$LD_LIBRARY_PATH
   export CMAKE_PREFIX_PATH=$ARROW_HOME:$CMAKE_PREFIX_PATH
   export ARROW_BUILD_TYPE=release
   
   cmake \
       -S arrow/cpp \
       -B arrow/cpp/build \
       -GNinja \
       -DCMAKE_BUILD_TYPE=Release \
       -DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
       -DARROW_BUILD_STATIC=ON \
       -DARROW_BUILD_SHARED=OFF \
       -DARROW_DEPENDENCY_SOURCE=BUNDLED \
       -DARROW_DEPENDENCY_USE_SHARED=OFF \
       -DARROW_CUDA=OFF \
       -DARROW_FLIGHT=ON \
       -DARROW_PARQUET=ON \
       -DARROW_CSV=ON \
       -DARROW_JSON=ON \
       -DARROW_FILESYSTEM=ON \
       -DARROW_MIMALLOC=OFF \
       -DPARQUET_REQUIRE_ENCRYPTION=OFF
   
   cmake --build arrow/cpp/build --target install
   
   pushd arrow/python
   export PYARROW_PARALLEL=4
   python3.13 setup.py build_ext --build-type=$ARROW_BUILD_TYPE \
            --bundle-arrow-cpp bdist_wheel
   popd
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to