Skip to content

Commit

Permalink
ARROW-18284: [Python][Docs] Add missing CMAKE_PREFIX_PATH to allow se…
Browse files Browse the repository at this point in the history
…tup.py CMake invocations to find Arrow CMake package (#14586)

Following along the build documentation CMake was unable to find the arrow installation when the documentation gets to the point of invoking setup.py. This should fix that and prevent errors like:

```sh
CMake Error at /home/willayd/mambaforge/envs/pyarrow-dev/share/cmake-3.24/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "FindArrow.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Arrow", but
  CMake did not find one.

  Could not find a package configuration file provided by "Arrow" with any of
  the following names:

    ArrowConfig.cmake
    arrow-config.cmake

  Add the installation prefix of "Arrow" to CMAKE_PREFIX_PATH or set
  "Arrow_DIR" to a directory containing one of the above files.  If "Arrow"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  build/dist/lib/cmake/ArrowPython/ArrowPythonConfig.cmake:54 (find_dependency)
  CMakeLists.txt:239 (find_package
```

Authored-by: Will Ayd <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
WillAyd authored Nov 8, 2022
1 parent 4ec92ec commit 72d098b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/developers/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ about our build toolchain:
$ export ARROW_HOME=$(pwd)/dist
$ export LD_LIBRARY_PATH=$(pwd)/dist/lib:$LD_LIBRARY_PATH
$ export CMAKE_PREFIX_PATH=$ARROW_HOME:$CMAKE_PREFIX_PATH
Build and test
--------------
Expand Down

0 comments on commit 72d098b

Please sign in to comment.