提交 f7d55bc8 编写于 作者: Y Yan Chunwei 提交者: GitHub

bugfix/fix build protoc dependency (#79)

上级 ca13bf98
......@@ -28,6 +28,16 @@ build_backend() {
}
build_onnx_graph() {
cd $TOP_DIR/visualdl/server
if [ ! -d protoc3 ]; then
# manully install protobuf3
curl -OL https://github.com/google/protobuf/releases/download/v3.1.0/protoc-3.1.0-linux-x86_64.zip
unzip protoc-3.1.0-linux-x86_64.zip -d protoc3
chmod +x protoc3/bin/*
fi
export PATH="$PATH:$(pwd)/protoc3/bin"
# TODO(ChunweiYan) check protoc version here
cd $TOP_DIR/visualdl/server/onnx
protoc onnx.proto --python_out .
......
......@@ -27,7 +27,7 @@ VERSION_NUMBER = read('VERSION_NUMBER')
LICENSE = readlines('LICENSE')[0].strip()
install_requires = ['Flask', 'numpy', 'Pillow', 'protobuf']
execute_requires = ['npm', 'node', 'protoc', 'bash']
execute_requires = ['npm', 'node', 'bash']
def die(msg):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册