mirror of https://github.com/grpc/grpc.git
[Build] Making grpcio_tools ready for upcoming Protobuf change. (#36074)
Protobuf is beginning to rely more on upb, pulling in more C files. Hence, grpcio_tool needs the following changes to absorb this.
- Changing the setup.py to support both C and C++ by removing explicit language=c++. Rather it can choose the right compiler by its extension.
- Adding build_extensions injection to deal with C/C++ option conflict as grpcio does.
- Adding protobuf and upb directories to the build script so that it can find newly added source files in protobuf.
Tested by https://github.com/grpc/grpc/pull/35796
Closes #36074
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36074 from veblush:grpcio-tool-ready 84abce9083
PiperOrigin-RevId: 613975137
pull/36083/head
parent
9ba8bb5dd2
commit
bf09088b5f
4 changed files with 45 additions and 2 deletions
Loading…
Reference in new issue