MCPcopy Create free account
hub / github.com/apache/tvm-ffi / find_python_helper_include_path

Function find_python_helper_include_path

python/tvm_ffi/libinfo.py:124–134  ·  view source on GitHub ↗

Find header files for C compilation.

()

Source from the content-addressed store, hash-verified

122
123
124def find_python_helper_include_path() -> str:
125 """Find header files for C compilation."""
126 if ret := _resolve_and_validate(
127 paths=[
128 _rel_top_directory() / "include",
129 _dev_top_directory() / "python" / "tvm_ffi" / "cython",
130 ],
131 cond=lambda p: (p / "tvm_ffi_python_helpers.h").is_file(),
132 ):
133 return ret
134 raise RuntimeError("Cannot find python helper include path.")
135
136
137def include_paths() -> list[str]:

Callers 1

include_pathsFunction · 0.85

Calls 3

_resolve_and_validateFunction · 0.85
_rel_top_directoryFunction · 0.85
_dev_top_directoryFunction · 0.85

Tested by

no test coverage detected