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
- Host: GitHub
- URL: https://github.com/psigen/bazel-python-cpp-example
- Owner: psigen
- License: mit
- Created: 2019-08-10T18:19:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-27T17:46:17.000Z (about 3 years ago)
- Last Synced: 2023-05-27T18:24:35.732Z (about 3 years ago)
- Language: Starlark
- Size: 4.88 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.