@@ -73,31 +73,31 @@ set(Python3_FIND_REGISTRY "LAST")
73
73
set (Python3_FIND_FRAMEWORK "LAST" )
74
74
75
75
find_package (Python3Alt 3.7 REQUIRED)
76
- include_directories (SYSTEM ${NUMPY_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} ${ARROW_INCLUDE_DIR} src)
76
+ include_directories (SYSTEM ${NUMPY_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS} ${ARROW_INCLUDE_DIR} ${CMAKE_SOURCE_DIR} src)
77
77
78
78
add_custom_target (arrow_python)
79
79
80
80
set (ARROW_PYTHON_SRCS
81
- arrow_to_pandas.cc
82
- benchmark.cc
83
- common.cc
84
- datetime.cc
85
- decimal.cc
86
- deserialize.cc
87
- extension_type.cc
88
- gdb.cc
89
- helpers.cc
90
- inference.cc
91
- init.cc
92
- io.cc
93
- ipc.cc
94
- numpy_convert.cc
95
- numpy_to_arrow.cc
96
- python_test.cc
97
- python_to_arrow.cc
98
- pyarrow.cc
99
- serialize.cc
100
- udf.cc)
81
+ arrow/python/ arrow_to_pandas.cc
82
+ arrow/python/ benchmark.cc
83
+ arrow/python/ common.cc
84
+ arrow/python/ datetime.cc
85
+ arrow/python/ decimal.cc
86
+ arrow/python/ deserialize.cc
87
+ arrow/python/ extension_type.cc
88
+ arrow/python/ gdb.cc
89
+ arrow/python/ helpers.cc
90
+ arrow/python/ inference.cc
91
+ arrow/python/ init.cc
92
+ arrow/python/ io.cc
93
+ arrow/python/ ipc.cc
94
+ arrow/python/ numpy_convert.cc
95
+ arrow/python/ numpy_to_arrow.cc
96
+ arrow/python/ python_test.cc
97
+ arrow/python/ python_to_arrow.cc
98
+ arrow/python/ pyarrow.cc
99
+ arrow/python/ serialize.cc
100
+ arrow/python/ udf.cc)
101
101
102
102
set_source_files_properties (init.cc PROPERTIES SKIP_PRECOMPILE_HEADERS ON
103
103
SKIP_UNITY_BUILD_INCLUSION ON )
@@ -127,7 +127,7 @@ endif()
127
127
128
128
if (PYARROW_WITH_PARQUET_ENCRYPTION)
129
129
if (PARQUET_REQUIRE_ENCRYPTION)
130
- list (APPEND ARROW_PYTHON_SRCS parquet_encryption.cc)
130
+ list (APPEND ARROW_PYTHON_SRCS arrow/python/ parquet_encryption.cc)
131
131
find_package (Parquet REQUIRED)
132
132
list (APPEND ARROW_PYTHON_SHARED_LINK_LIBS Parquet::parquet_shared)
133
133
list (APPEND ARROW_PYTHON_SHARED_INSTALL_INTERFACE_LIBS Parquet::parquet_shared)
@@ -146,11 +146,11 @@ endif()
146
146
147
147
# Check for only Arrow C++ options
148
148
if (ARROW_CSV)
149
- list (APPEND ARROW_PYTHON_SRCS csv.cc)
149
+ list (APPEND ARROW_PYTHON_SRCS arrow/python/ csv.cc)
150
150
endif ()
151
151
152
152
if (ARROW_FILESYSTEM)
153
- list (APPEND ARROW_PYTHON_SRCS filesystem.cc)
153
+ list (APPEND ARROW_PYTHON_SRCS arrow/python/ filesystem.cc)
154
154
endif ()
155
155
156
156
if (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
@@ -225,7 +225,7 @@ add_arrow_lib(arrow_python
225
225
SOURCES
226
226
${ARROW_PYTHON_SRCS}
227
227
PRECOMPILED_HEADERS
228
- "$<$<COMPILE_LANGUAGE:CXX>:pch.h>"
228
+ "$<$<COMPILE_LANGUAGE:CXX>:arrow/python/ pch.h>"
229
229
OUTPUTS
230
230
ARROW_PYTHON_LIBRARIES
231
231
SHARED_LINK_FLAGS
@@ -269,7 +269,7 @@ if(ARROW_FLIGHT AND ARROW_BUILD_SHARED)
269
269
PKG_CONFIG_NAME
270
270
arrow-python-flight
271
271
SOURCES
272
- flight.cc
272
+ arrow/python/ flight.cc
273
273
OUTPUTS
274
274
ARROW_PYFLIGHT_LIBRARIES
275
275
SHARED_LINK_FLAGS
@@ -309,4 +309,4 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STREQUAL
309
309
PROPERTY COMPILE_FLAGS -Wno-parentheses-equality)
310
310
endif ()
311
311
312
- arrow_install_all_headers( " arrow/python" )
312
+ add_subdirectory ( arrow/python)
0 commit comments