Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Dec 5, 2023
1 parent ff42ca3 commit cc20ac8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpp/cmake/thirdparty/get_arrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,14 @@ endif()
# wheels we must use the library in the pyarrow wheel, so it's best to simply be consistent.
find_package(Python 3.9 COMPONENTS Interpreter)

if (${Python_FOUND})
if(${Python_FOUND})
execute_process(
COMMAND "${Python_EXECUTABLE}" -c "import importlib; print(importlib.util.find_spec('pyarrow') is not None)"
COMMAND "${Python_EXECUTABLE}" -c
"import importlib; print(importlib.util.find_spec('pyarrow') is not None)"
OUTPUT_VARIABLE _pyarrow_installed
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (${_pyarrow_installed} STREQUAL "True")
if(${_pyarrow_installed} STREQUAL "True")
execute_process(
COMMAND "${Python_EXECUTABLE}" -c "import pyarrow; print(pyarrow.get_library_dirs()[0])"
OUTPUT_VARIABLE _pyarrow_lib_dir
Expand Down

0 comments on commit cc20ac8

Please sign in to comment.