Skip to content

arrowcpp

Functions:

arrowcpp_compile_flags

arrowcpp_compile_flags() -> tuple[str, ...]
Source code in packages/irx/src/irx/builder/runtime/arrowcpp.py
36
37
38
39
40
41
42
43
@typechecked
def arrowcpp_compile_flags() -> tuple[str, ...]:
    """
    title: Return compiler flags required by Arrow C++ headers.
    returns:
      type: tuple[str, Ellipsis]
    """
    return ("-std=c++20",)

arrowcpp_include_dirs

arrowcpp_include_dirs() -> tuple[Path, ...]
Source code in packages/irx/src/irx/builder/runtime/arrowcpp.py
23
24
25
26
27
28
29
30
31
32
33
@typechecked
def arrowcpp_include_dirs() -> tuple[Path, ...]:
    """
    title: Return Arrow C++ include directories for native runtime builds.
    returns:
      type: tuple[Path, Ellipsis]
    """
    return (
        get_arrowcpp_source_include_dir(),
        Path(pyarrow.get_include()),
    )

arrowcpp_linker_flags

arrowcpp_linker_flags() -> tuple[str, ...]
Source code in packages/irx/src/irx/builder/runtime/arrowcpp.py
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@typechecked
def arrowcpp_linker_flags() -> tuple[str, ...]:
    """
    title: Return linker flags for the bundled Arrow C++ runtime.
    returns:
      type: tuple[str, Ellipsis]
    """
    library = _find_pyarrow_library("arrow")
    library_dir = library.parent
    flags = [str(library)]

    if sys.platform != "win32":
        flags.append(f"-Wl,-rpath,{library_dir}")

    return tuple(flags)

arrowcpp_runtime_metadata

arrowcpp_runtime_metadata() -> dict[str, object]
Source code in packages/irx/src/irx/builder/runtime/arrowcpp.py
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@typechecked
def arrowcpp_runtime_metadata() -> dict[str, object]:
    """
    title: Return Arrow C++ runtime implementation metadata.
    returns:
      type: dict[str, object]
    """
    return {
        "implementation": "arrow-cpp",
        "arrowcpp_version": bundled_arrowcpp_version(),
        "arrowcpp_include_dirs": tuple(
            str(path) for path in arrowcpp_include_dirs()
        ),
        "arrowcpp_libraries": tuple(arrowcpp_linker_flags()),
    }