Skip to content

Instantly share code, notes, and snippets.

@nikolavp
Created June 11, 2013 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikolavp/5755563 to your computer and use it in GitHub Desktop.
Save nikolavp/5755563 to your computer and use it in GitHub Desktop.
Bulding graphite packages with FPM. Note that there are no dependencies in the metadata for the packages at the moment
echo Installing dependencies
apt-get -y install python apache2 python-twisted python-memcache libapache2-mod-python python-django libpixman-1-0 python-cairo python-django-tagging
echo Downloading packages
wget http://pypi.python.org/packages/source/c/carbon/carbon-0.9.10.tar.gz#md5=1d85d91fe220ec69c0db3037359b691a
wget http://pypi.python.org/packages/source/w/whisper/whisper-0.9.10.tar.gz#md5=218aadafcc0a606f269b1b91b42bde3f
wget http://pypi.python.org/packages/source/g/graphite-web/graphite-web-0.9.10.tar.gz#md5=b6d743a254d208874ceeff0a53e825c1
echo Unarchiving packages
tar zxf graphite-web-0.9.10.tar.gz
tar zxf carbon-0.9.10.tar.gz
tar zxf whisper-0.9.10.tar.gz
fpm --python-install-bin /opt/graphite/bin -s python -t deb carbon-0.9.10/setup.py
fpm --python-install-bin /opt/graphite/bin -s python -t deb whisper-0.9.10/setup.py
fpm --python-install-lib /opt/graphite/webapp -s python -t deb graphite-web-0.9.10/setup.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment