duckdb_includes = [x for x in f.read().split('\n') if len(x) > 0] source_files += duckdb_sources include_directories = duckdb_includes + include_directories libduckdb = Extension('duckdb', include_dirs=include_directories, sources=source_files, extra_compile_args=toolchain_args, extra_link_args=toolchain_args, language='c++') else: sys.path.append(os.path.join(script_path, '..', '..', 'scripts')) import package_build toolchain_args += ['-I' + x for x in package_build.includes(extensions)] result_libraries = package_build.get_libraries(existing_duckdb_dir, libraries, extensions) library_dirs = [x[0] for x in result_libraries if x[0] is not None] libnames = [x[1] for x in result_libraries if x[1] is not None] libduckdb = Extension('duckdb', include_dirs=include_directories, sources=['duckdb_python.cpp'], extra_compile_args=toolchain_args, extra_link_args=toolchain_args, libraries=libnames, library_dirs=library_dirs, language='c++') # Only include pytest-runner in setup_requires if we're invoking tests
duckdb_includes = [x for x in f.read().split('\n') if len(x) > 0] source_files += duckdb_sources include_directories = duckdb_includes + include_directories libduckdb = Extension('duckdb', include_dirs=include_directories, sources=source_files, extra_compile_args=toolchain_args, extra_link_args=toolchain_args, language='c++') else: sys.path.append(os.path.join(script_path, '..', '..', 'scripts')) import package_build toolchain_args += ['-I' + x for x in package_build.includes()] result_libraries = package_build.get_libraries(existing_duckdb_dir, libraries) library_dirs = [x[0] for x in result_libraries if x[0] is not None] libnames = [x[1] for x in result_libraries if x[1] is not None] libduckdb = Extension('duckdb', include_dirs=include_directories, sources=['duckdb_python.cpp'], extra_compile_args=toolchain_args, extra_link_args=toolchain_args, libraries=libnames, library_dirs=library_dirs, language='c++') # Only include pytest-runner in setup_requires if we're invoking tests