Hello everyone, I have been researching and working on the migration of PEX build rules to native Bazel rules in the PR here: https://github.com/apache/incubator-heron/pull/3768
I have learnt a lot about Bazel and a fair amount about building Protobuf within Bazel. The unfortunate reality is that there is only native support for C++, Java, and Golang Protobuf libraries. If we attempt to compile the Python Protobuf using custom genrules we will need to configure providers ( https://docs.bazel.build/versions/main/skylark/rules.html#providers) for the native Bazel libraries rules to be able to assemble libraries. We would likely be removing the PEX rules and replacing them with custom Starlark rules. There is an excellent live article on the current state of Protobuf within the Bazel project here: https://aaliddell.github.io/SIG-rules-authors/proto-grpc My work to build the Heron Protobufs for Python, Java, and C++ is in the following repository under the "proto" directory. https://github.com/surahman/Heron-Protobuf https://github.com/surahman/Heron-Protobuf/tree/main/proto These Protobuf build rules were automatically generated by Gazelle after some configuration and will assemble the Protobuf libraries. On Mon, Feb 7, 2022 at 8:47 PM Ning Wang <[email protected]> wrote: > Hello, > > It has been two weeks since our last sync! Let's share our works for the > last two weeks in this thread. Thanks! > > > Regards, > --ning >
