Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Update setup.py.in
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-penkin authored and ienkovich committed Aug 11, 2022
1 parent 3cf7faa commit d7f440e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import pyarrow as pa
# pyhdk.
extra_library_dirs = []
if "HDK_ROOT_PATH" in os.environ:
extra_library_dirs.append(os.path.join(os.environ["HDK_ROOT_PATH"], "lib"))
extra_library_dirs.append(os.path.join(os.environ["HDK_ROOT_PATH"], "lib64"))

include_dirs = [
np.get_include(),
Expand All @@ -46,8 +46,8 @@ common = Extension(
["@CMAKE_CURRENT_SOURCE_DIR@/pyhdk/_common.pyx"],
language="c++",
include_dirs=include_dirs,
library_dirs=pa.get_library_dirs() + ["@CMAKE_CURRENT_BINARY_DIR@", "."],
runtime_library_dirs=pa.get_library_dirs(),
library_dirs=pa.get_library_dirs() + ["@CMAKE_CURRENT_BINARY_DIR@", "."] + extra_library_dirs,
runtime_library_dirs=pa.get_library_dirs() + extra_library_dirs,
libraries=pa.get_libraries() + ["QueryEngine", "ConfigBuilder", "Logger", "Shared"],
extra_compile_args=["-std=c++17", "-D__STDC_FORMAT_MACROS"],
)
Expand All @@ -57,8 +57,8 @@ execute = Extension(
["@CMAKE_CURRENT_SOURCE_DIR@/pyhdk/_execute.pyx"],
language="c++",
include_dirs=include_dirs,
library_dirs=pa.get_library_dirs() + ["@CMAKE_CURRENT_BINARY_DIR@", "."],
runtime_library_dirs=pa.get_library_dirs(),
library_dirs=pa.get_library_dirs() + ["@CMAKE_CURRENT_BINARY_DIR@", "."] + extra_library_dirs,
runtime_library_dirs=pa.get_library_dirs() + extra_library_dirs,
libraries=pa.get_libraries() + ["QueryEngine"],
extra_compile_args=["-std=c++17", "-D__STDC_FORMAT_MACROS"],
)
Expand All @@ -68,7 +68,7 @@ sql = Extension(
["@CMAKE_CURRENT_SOURCE_DIR@/pyhdk/_sql.pyx"],
language="c++",
include_dirs=include_dirs,
library_dirs=["@CMAKE_CURRENT_BINARY_DIR@", "."],
library_dirs=["@CMAKE_CURRENT_BINARY_DIR@", "."] + extra_library_dirs,
libraries=["Calcite", "QueryEngine"],
extra_compile_args=["-std=c++17", "-D__STDC_FORMAT_MACROS"],
)
Expand All @@ -78,8 +78,8 @@ storage = Extension(
["@CMAKE_CURRENT_SOURCE_DIR@/pyhdk/_storage.pyx"],
language="c++",
include_dirs=include_dirs,
library_dirs=pa.get_library_dirs() + ["@CMAKE_CURRENT_BINARY_DIR@", "."],
runtime_library_dirs=pa.get_library_dirs(),
library_dirs=pa.get_library_dirs() + ["@CMAKE_CURRENT_BINARY_DIR@", "."] + extra_library_dirs,
runtime_library_dirs=pa.get_library_dirs() + extra_library_dirs,
libraries=pa.get_libraries() + ["ArrowStorage", "SchemaMgr", "DataMgr"],
extra_compile_args=["-std=c++17", "-D__STDC_FORMAT_MACROS"],
)
Expand Down

0 comments on commit d7f440e

Please sign in to comment.