SINGA-27 Generate python modules for proto objects
Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/27b863cd Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/27b863cd Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/27b863cd Branch: refs/heads/master Commit: 27b863cda4c8d38c8e92739b50031f4b3e0d1b25 Parents: 132eaa3 Author: xiezl <[email protected]> Authored: Sat Jun 27 23:46:49 2015 +0800 Committer: xiezl <[email protected]> Committed: Sat Jun 27 23:46:49 2015 +0800 ---------------------------------------------------------------------- thirdparty/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/27b863cd/thirdparty/install.sh ---------------------------------------------------------------------- diff --git a/thirdparty/install.sh b/thirdparty/install.sh index 52a74bc..04321d2 100755 --- a/thirdparty/install.sh +++ b/thirdparty/install.sh @@ -273,11 +273,19 @@ function install_protobuf() echo "install protobuf in $1"; ./configure --prefix=$1; make && make install; + cd python; + python setup.py build; + python setup.py install --prefix=$1; + cd ..; elif [ $# == 0 ] then echo "install protobuf in default path"; ./configure; make && sudo make install; + cd python; + python setup.py build; + sudo python setup.py install; + cd ..; else echo "wrong commands"; fi
