Skip to content

Commit

Permalink
bugfix/fix build protoc dependency (PaddlePaddle#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Superjomn authored Jan 10, 2018
1 parent ca13bf9 commit f7d55bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def readlines(name):
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):
Expand Down

0 comments on commit f7d55bc

Please sign in to comment.