浏览代码

Added a small script to compile grpc

Nel Nibcord 8 月之前
父节点
当前提交
9712d696a9
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      scripts/compile_grpc.sh

+ 7 - 0
scripts/compile_grpc.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+source ./install.sh
+pushd exo/networking/grpc
+python3.12 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. node_service.proto
+sed -i "s/import node_service_pb2/from . &/" node_service_pb2_grpc.py
+popd
+