onnx_light.cpp_build#

Paths needed to link extensions against the loaded onnx-light runtime.

onnx_light.cpp_build.get_cpp_build_info() dict[str, str]#

Returns the headers and shared libraries used by the Python runtime.

The libraries are looked up next to the loaded _onnxpyprotoop extension, not in the source tree, so the result is correct for editable installs as well. Linking an extension to another build or installed copy of lib_onnx_core would create a second process-wide kernel registry.

Returns:

A dictionary with include_dir, library_dir and one <component>_library entry per runtime library built as a shared library. Windows and macOS link every runtime library but lib_onnx_proto statically into each Python extension, so core_library is only reported on Linux. On Windows, the matching <component>_import_library is added when the build tree is available.