Files
termux-packages/packages/python-pyarrow/python-CMakeLists.txt.patch
termux-pacman-bot 6a7c69d638 libarrow-python: Rename to python-pyarrow
`libarrow_python.so` is now a part of `pyarrow` Python module and unable
to build / install separately. It is true that `pyarrow` is installable
through `pip` with some trivial workaround, but I would like to package
this in our official repo for backward compatibility.
2023-02-05 02:27:51 +00:00

20 lines
697 B
Diff

--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -260,6 +260,7 @@
# Python and Numpy libraries
find_package(Python3Alt REQUIRED)
+include_directories(SYSTEM ${NUMPY_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
include(UseCython)
# PyArrow C++
@@ -369,7 +370,7 @@
target_precompile_headers(arrow_python PUBLIC
"$<$<COMPILE_LANGUAGE:CXX>:arrow/python/pch.h>")
endif()
-target_link_libraries(arrow_python PUBLIC ${PYARROW_CPP_LINK_LIBS} Python3::NumPy)
+target_link_libraries(arrow_python PUBLIC ${PYARROW_CPP_LINK_LIBS})
target_compile_definitions(arrow_python PRIVATE ARROW_PYTHON_EXPORTING)
install(TARGETS arrow_python
ARCHIVE DESTINATION .