6 from Cython.Build
import cythonize
7 from distutils.core
import setup, Extension
14 root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
20 extra_library_dirs = []
21 if 'HEAVYDB_ROOT_PATH' in os.environ:
22 extra_library_dirs.append(os.path.join(os.environ[
'HEAVYDB_ROOT_PATH'],
'lib'))
26 [
"@CMAKE_CURRENT_SOURCE_DIR@/Python/dbe.pyx"],
33 "@CMAKE_CURRENT_SOURCE_DIR@",
34 "@CMAKE_SOURCE_DIR@/ThirdParty/rapidjson",
35 "@CMAKE_SOURCE_DIR@/Distributed/os",
37 library_dirs=pa.get_library_dirs() + [
"@CMAKE_CURRENT_BINARY_DIR@",
"."] + extra_library_dirs,
38 runtime_library_dirs=pa.get_library_dirs() + [
"$ORIGIN/../../"] + extra_library_dirs,
39 libraries=pa.get_libraries() + [
"DBEngine",
"boost_system"],
40 extra_compile_args=[
"-std=c++17",
"-DRAPIDJSON_HAS_STDSTRING"],
50 (
"lib", [
"$<TARGET_FILE:DBEngine>"]),
53 [
"@CMAKE_BINARY_DIR@/bin/calcite-1.0-SNAPSHOT-jar-with-dependencies.jar"],
58 "@CMAKE_BINARY_DIR@/QueryEngine/RuntimeFunctions.bc",
59 "@CMAKE_BINARY_DIR@/QueryEngine/ExtensionFunctions.ast",
65 "@CMAKE_CURRENT_SOURCE_DIR@/DBEngine.h",
66 "@CMAKE_CURRENT_SOURCE_DIR@/DBEngine.pxd",
74 ext_modules=cythonize(
77 "c_string_type":
"str",
78 "c_string_encoding":
"utf8",
79 "language_level":
"3",
82 "@CMAKE_CURRENT_SOURCE_DIR@",
83 "@CMAKE_CURRENT_SOURCE_DIR@/Python",
86 data_files=data_files,