0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/python-pyarrow/python-CMakeLists.txt.patch
Biswapriyo Nath 6e6fc876ce bump(main/python-pyarrow): 17.0.0, use pyproject.toml to build
* Remove the setup.py.diff file because the version is set by the build module.
* Remove generating _generated_version.py file in post make install step because
  that file is generated by build procedure automatically.
2024-07-20 08:31:27 +05:30

19 lines
646 B
Diff

--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -256,6 +256,7 @@
# Python and Numpy libraries
find_package(Python3Alt REQUIRED)
+include_directories(SYSTEM ${NUMPY_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
message(STATUS "Found NumPy version: ${Python3_NumPy_VERSION}")
message(STATUS "NumPy include dir: ${NUMPY_INCLUDE_DIRS}")
@@ -460,7 +461,6 @@
else()
target_link_libraries(arrow_python PRIVATE ${PYARROW_CPP_LINK_LIBS})
endif()
-target_link_libraries(arrow_python PUBLIC Python3::NumPy)
target_compile_definitions(arrow_python PRIVATE ARROW_PYTHON_EXPORTING)
install(TARGETS arrow_python
ARCHIVE DESTINATION .