pybind11_bazel
pybind11_bazel copied to clipboard
Bazel wrapper around the pybind11 repository
This repo is nearly always the first hit when searching for bazel + pybind11. New to PyBind11, I am having a lot of trouble building a python module, then importing...
For the `pybind_library` and similar targets, the `PYBIND_DEPS` are added by default to the deps list, see https://github.com/pybind/pybind11_bazel/blob/8889d39b2b925b2a47519ae09402a96f00ccf2b4/build_defs.bzl#L78C9-L78C35. Now if a user includes `@pybind` or `@pybind//:pybind` as a dependency, it...
Minimal reproduction example in https://github.com/martinblech/pybind11_test When I run the `pybind11_test` target, I get `Library not loaded: /install/lib/libpython3.11.dylib `. It seems like the binary was linked using an incorrect dylib path....
I'm trying to use pybind11_bazel to execute some python code within C++. When I build my python targets with `rules_python` I'm able to install packages that can be used by...
When used in a multi python version bzlmod workspace add an attribute to select the python version for `pybind_extension`, `pybind_library` and `pybind_library_test` rules.
Hello, what could be the reason for the following error message when trying to run my py_binary: **ModuleNotFoundError: No module named module_name** The shared libraries are there beside the py...
Add a self-contained example building a dummy library complete with a WORKSPACE, BUILD and source code file. GitHub issue #19
``` Compiling foo/bar/target__pybind.cc; 1s remote-cache, linux-sandbox Compiling foo/bar/target__pybind.cc; 1s remote-cache, linux-sandbox ``` I'm not sure if I'm using the rule correctly or if this is intended behavior but I seem...
I have seen build examples with setuptools, cmake in https://pybind11.readthedocs.io/en/stable/compiling.html. Could provide a bazel build example to build usable python .whl?
Today I was playing around with pybind11 and different build systems. Being new to `bazel`, it took me a while to get started. Would it make sense to add a...