-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
13,030 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Find the Pyarrow package | ||
# PYARROW_INCLUDE_DIR | ||
# PYARROW_LIB_DIR | ||
# PYARROW_LIBRARY | ||
# PYARROW_FOUND | ||
# will be set by this script | ||
|
||
cmake_minimum_required(VERSION 3.7.2) | ||
|
||
find_package( PythonInterp ${PYTHON_VERSION} EXACT REQUIRED ) | ||
|
||
# Find out the include path | ||
execute_process( | ||
COMMAND "${Python_EXECUTABLE}" -c | ||
"from __future__ import print_function;import pyarrow;print(pyarrow.get_include(), end='')" | ||
OUTPUT_VARIABLE __pyarrow_path) | ||
|
||
# Find out the library path | ||
execute_process( | ||
COMMAND "${Python_EXECUTABLE}" -c | ||
"from __future__ import print_function;import pyarrow;print(pyarrow.get_library_dirs()[0], end='')" | ||
OUTPUT_VARIABLE __pyarrow_lib_path) | ||
|
||
# And the version | ||
execute_process( | ||
COMMAND "${Python_EXECUTABLE}" -c | ||
"from __future__ import print_function;import pyarrow;print(pyarrow.__version__, end='')" | ||
OUTPUT_VARIABLE __pyarrow_version) | ||
|
||
find_path(PYARROW_INCLUDE_DIR arrow/python/pyarrow.h | ||
HINTS "${__pyarrow_path}" "${PYTHON_INCLUDE_PATH}" NO_DEFAULT_PATH) | ||
|
||
find_path(PYARROW_LIB_DIR libarrow_python.so | ||
HINTS "${__pyarrow_lib_path}" "${PYTHON_LIBRARY_PATH}" NO_DEFAULT_PATH) | ||
|
||
find_file(PYARROW_LIBRARY libarrow_python.so | ||
HINTS "${__pyarrow_lib_path}" "${PYTHON_LIBRARY_PATH}" NO_DEFAULT_PATH) | ||
|
||
if(PYARROW_INCLUDE_DIR AND PYARROW_LIB_DIR AND PYARROW_LIBRARY) | ||
set(PYARROW_FOUND 1 CACHE INTERNAL "Python pyarrow found") | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Pyarrow REQUIRED_VARS PYARROW_INCLUDE_DIR PYARROW_LIB_DIR PYARROW_LIBRARY | ||
VERSION_VAR __pyarrow_version) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#include <apn-python/pybind11.hpp> | ||
|
Oops, something went wrong.