Find header files for C compilation.
()
| 122 | |
| 123 | |
| 124 | def 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 | |
| 137 | def include_paths() -> list[str]: |
no test coverage detected