[
https://issues.apache.org/jira/browse/ARROW-18322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634089#comment-17634089
]
Kouhei Sutou commented on ARROW-18322:
--------------------------------------
Thanks.
Adding the following line after the {{apt-get install -y -V
libarrow-dev=10.0.0-1 libparquet-dev=10.0.0-1 libarrow-dataset-dev=10.0.0-1}}
line is workaround:
{noformat}
&& sed -i -e 's/ARROW_FLIGHT "ON"/ARROW_FLIGHT "OFF"/'
/usr/lib/x86_64-linux-gnu/cmake/Arrow/ArrowOptions.cmake \
{noformat}
[~alenka] Could you work on this? The following patch may fix this:
{noformat}
diff --git a/python/pyarrow/src/CMakeLists.txt
b/python/pyarrow/src/CMakeLists.txt
index 7d943b52e4..87a106c594 100644
--- a/python/pyarrow/src/CMakeLists.txt
+++ b/python/pyarrow/src/CMakeLists.txt
@@ -253,7 +253,7 @@ if(ARROW_BUILD_STATIC AND MSVC)
target_compile_definitions(arrow_python_static PUBLIC ARROW_STATIC)
endif()
-if(ARROW_FLIGHT AND ARROW_BUILD_SHARED)
+if(PYARROW_WITH_FLIGHT AND ARROW_FLIGHT AND ARROW_BUILD_SHARED)
# Must link to shared libarrow_flight: we don't want to link more than one
# copy of gRPC into the eventual Cython shared object, otherwise gRPC calls
# fail with weird errors due to multiple copies of global static state (The
diff --git a/python/setup.py b/python/setup.py
index bcc427f87d..3c8437b0e2 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -270,6 +270,8 @@ class build_ext(_build_ext):
'PYARROW_WITH_PARQUET_ENCRYPTION')
append_cmake_bool(self.with_hdfs,
'PYARROW_WITH_HDFS')
+ append_cmake_bool(self.with_flight,
+ 'PYARROW_WITH_FLIGHT')
# Windows
if self.cmake_generator:
{noformat}
> [Python] source installation from pip without flight
> ----------------------------------------------------
>
> Key: ARROW-18322
> URL: https://issues.apache.org/jira/browse/ARROW-18322
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 10.0.0
> Reporter: Alan Snow
> Priority: Major
>
> {{{color:#569cd6}ENV{color}{color:#d4d4d4} ARROW_FLIGHT
> {color}{color:#ce9178}'OFF'{color}}}
> {{{color:#569cd6}ENV{color}{color:#d4d4d4} ARROW_GANDIVA
> {color}{color:#ce9178}'OFF'{color}}}
> {{{color:#569cd6}ENV{color}{color:#d4d4d4} ARROW_PLASMA
> {color}{color:#ce9178}'OFF'{color}}}
> {{{color:#569cd6}ENV{color}{color:#d4d4d4} PYARROW_WITH_FLIGHT
> {color}{color:#ce9178}'OFF'{color}}}
> {{{color:#569cd6}ENV{color}{color:#d4d4d4} PYARROW_WITH_GANDIVA
> {color}{color:#ce9178}'OFF'{color}}}
> {{{color:#569cd6}ENV{color}{color:#d4d4d4} PYARROW_WITH_PLASMA
> {color}{color:#ce9178}'OFF'{color}}}
> {{{color:#ce9178}python -m pip install pyarrow{color}}}
> {{ }}
> {{{color:#ce9178}...{color}}}
> {{ }}
> {{CMake Error at CMakeLists.txt:262 (find_package):}}
> {{ }}
> {{By not providing "FindArrowFlight.cmake" in CMAKE_MODULE_PATH this project}}
> {{ }}
> {{has asked CMake to find a package configuration file provided by}}
> {{ }}
> {{"ArrowFlight", but CMake did not find one.}}
> {{ }}
> {{ }}
> {{ }}
> {{Could not find a package configuration file provided by "ArrowFlight" with}}
> {{ }}
> {{any of the following names:}}
> {{ }}
> {{ }}
> {{ }}
> {{ArrowFlightConfig.cmake}}
> {{ }}
> {{arrowflight-config.cmake}}
> {{ }}
> {{Add the installation prefix of "ArrowFlight" to CMAKE_PREFIX_PATH or set}}
> {{ }}
> {{"ArrowFlight_DIR" to a directory containing one of the above files. If}}
> {{ }}
> {{"ArrowFlight" provides a separate development package or SDK, be sure it}}
> {{ {color:#ce9178}{\{ has been installed.}}{color}}}
> {{ }}
> OS: ubuntu 22
> Python: 3.9
--
This message was sent by Atlassian Jira
(v8.20.10#820010)