pybind / pybind11_protobuf

Pybind11 bindings for Google's Protocol Buffers
Other
54 stars 33 forks source link

BUILD file not found in directory 'python' of external repository @com_google_protobuf #164

Open translunar opened 3 weeks ago

translunar commented 3 weeks ago

Referencing #139, I almost got pybind11_protobuf working in my repository, but I get the following error: BUILD:39:17: no such package '@com_google_protobuf//python': BUILD file not found in directory 'python' of external repository @com_google_protobuf. Add a BUILD file to a directory to mark it as a package. and referenced by '//mypath:my_ext.so'.

Is this to be expected in the current development state?

jiawen commented 3 weeks ago

I think this has been a somewhat of a known issue for a while. Upstream protobuf maintainers have not committed to a stable Bazel interface for other projects to depend on as an external repository.

As a workaround, in my projects, I use a small patch to redirect Python to that defined my local toolchain. I can post an example when I'm back at the keyboard.

translunar commented 3 weeks ago

I'd be super grateful for an example! Thank you.

translunar commented 1 week ago

@jiawen Hi, just wanted to follow up on this

jiawen commented 1 week ago

@jiawen Hi, just wanted to follow up on this

Sorry I should have given you a timeline. I'm still afk on vacation but will be back online in about a week.