File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,16 @@ build_backend() {
2828}
2929
3030build_onnx_graph () {
31+
32+ cd $TOP_DIR /visualdl/server
33+ if [ ! -d protoc3 ]; then
34+ # manully install protobuf3
35+ curl -OL https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip
36+ unzip protoc-3.1.0-linux-x86_64.zip -d protoc3
37+ chmod +x protoc3/bin/*
38+ fi
39+
40+ export PATH=" $PATH :$( pwd) /protoc3/bin"
3141 # TODO(ChunweiYan) check protoc version here
3242 cd $TOP_DIR /visualdl/server/onnx
3343 protoc onnx.proto --python_out .
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def readlines(name):
2727LICENSE = readlines ('LICENSE' )[0 ].strip ()
2828
2929install_requires = ['Flask' , 'numpy' , 'Pillow' , 'protobuf' ]
30- execute_requires = ['npm' , 'node' , 'protoc' , ' bash' ]
30+ execute_requires = ['npm' , 'node' , 'bash' ]
3131
3232
3333def die (msg ):
You can’t perform that action at this time.
0 commit comments