From 719eaf2d3ea28b3100f2709e6cd01fe93d637c5e Mon Sep 17 00:00:00 2001 From: AlenkaF Date: Fri, 20 Mar 2026 11:08:31 +0100 Subject: [PATCH 1/2] Skip header files when installing compiled Cython files --- python/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 6395b3e1e7a0..388e9be4f543 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -968,6 +968,9 @@ foreach(module ${CYTHON_EXTENSIONS}) continue() endif() endif() + if(output MATCHES "\\.h$") + continue() + endif() install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION ".") endforeach() endforeach() From 9ba4a76fbb0472e6c486d072ca920495e600ed5a Mon Sep 17 00:00:00 2001 From: AlenkaF Date: Fri, 20 Mar 2026 12:08:58 +0100 Subject: [PATCH 2/2] Fix old build include location test --- python/pyarrow/tests/test_cpp_internals.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/pyarrow/tests/test_cpp_internals.py b/python/pyarrow/tests/test_cpp_internals.py index 7508d8f0b981..fbbf95e81b6c 100644 --- a/python/pyarrow/tests/test_cpp_internals.py +++ b/python/pyarrow/tests/test_cpp_internals.py @@ -49,9 +49,8 @@ def test_pyarrow_include(): # created. Either with PyArrow C++ header files or with # Arrow C++ and PyArrow C++ header files together - source = os.path.dirname(os.path.abspath(__file__)) - pyarrow_dir = pjoin(source, '..') - pyarrow_include = pjoin(pyarrow_dir, 'include') + import pyarrow + pyarrow_include = pyarrow.get_include() pyarrow_cpp_include = pjoin(pyarrow_include, 'arrow', 'python') assert os.path.exists(pyarrow_include)