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() 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)