Skip to content

Instantly share code, notes, and snippets.

@chapados
Created October 13, 2010 18:13
Show Gist options
  • Save chapados/624559 to your computer and use it in GitHub Desktop.
Save chapados/624559 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# This script will install the python bindings for protobuf
#
# settings
PROTOBUF_VERSION="2.3.0"
PROTOBUF_DIR="protobuf-${PROTOBUF_VERSION}"
# create /usr/local/src dir
mkdir -p /usr/local/src && cd /usr/local/src
# download
curl -O "http://protobuf.googlecode.com/files/${PROTOBUF_DIR}.tar.bz2"
# extract
tar xjf ${PROTOBUF_DIR}.tar.bz2
# install python bindings
cd ${PROTOBUF_DIR}/python
python setup.py test
python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment