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
_onnxpyprotoopextension, not in the source tree, so the result is correct for editable installs as well. Linking an extension to another build or installed copy oflib_onnx_corewould create a second process-wide kernel registry.- Returns:
A dictionary with
include_dir,library_dirand one<component>_libraryentry per runtime library built as a shared library. Windows and macOS link every runtime library butlib_onnx_protostatically into each Python extension, socore_libraryis only reported on Linux. On Windows, the matching<component>_import_libraryis added when the build tree is available.