未验证 提交 8ddc172b 编写于 作者: Y Yan Chunwei 提交者: GitHub

enhance/build_dependency (#194)

上级 b5d2df95
......@@ -41,17 +41,7 @@ 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
export PATH="$BUILD_DIR/third_party/protobuf/src/extern_protobuf-build/:$PATH"
cd $TOP_DIR/visualdl/server/onnx
protoc onnx.proto --python_out .
}
......
......@@ -28,7 +28,7 @@ LICENSE = readlines('LICENSE')[0].strip()
# use memcache to reduce disk read frequency.
install_requires = ['Flask', 'numpy', 'Pillow', 'protobuf', 'scipy']
execute_requires = ['npm', 'node', 'bash']
execute_requires = ['npm', 'node', 'bash', 'cmake', 'unzip']
def die(msg):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册