From aa9d805d04cd8c9ef2ac9c51b0641b41f39a8cfc Mon Sep 17 00:00:00 2001 From: vlin17 Date: Thu, 23 Jan 2020 13:10:12 -0800 Subject: [PATCH] build_py: build grpc interface --- apollo.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apollo.sh b/apollo.sh index 3ddd96757b..490a955668 100755 --- a/apollo.sh +++ b/apollo.sh @@ -282,6 +282,9 @@ function build_py_proto() { find modules/ cyber/ -name "*.proto" \ | grep -v node_modules \ | xargs protoc --python_out=py_proto + find modules/ cyber/ -name "*_service.proto" \ + | grep -v node_modules \ + | xargs python -m grpc_tools.protoc --proto_path=. --python_out=py_proto --grpc_python_out=py_proto find py_proto/* -type d -exec touch "{}/__init__.py" \; } -- GitLab