An open API service indexing awesome lists of open source software.

https://github.com/psigen/bazel-python-cpp-example

Example of bazel python cpp binding
https://github.com/psigen/bazel-python-cpp-example

Last synced: about 1 year ago
JSON representation

Example of bazel python cpp binding

Awesome Lists containing this project

README

          

# bazel-python-cpp-example

Example of a bazel python/cpp binding that includes a transitive dependency.

- `//native` contains a simple C++ library that has one function.
- `//binding` contains a pybind11 C++ binary that links to the function in `//native`
- `test_binding.py` is a unit test that imports the binding and runs the included
function. This requires that the transitively linked `//native` library also be
loaded into the sandbox for `test_binding.py`, solely through its dependence
on `//binding`.