Installation¶
Invenio-Formatter is on PyPI so all you need is:
$ pip install invenio-formatter
If you want to use the badge generation feature you need explicit enable it:
$ pip install invenio-formatter[badges]
This will install Pillow and CairoSVG library. For these libraries to work you must have the following system libraries installed with development headers:
- FreeType
- Cairo
- DejaVu Sans font
Linux¶
Install the dependencies with your package manager. For Ubuntu or Debian:
$ sudo apt-get install libcairo2-dev
OS X¶
Install the dependencies above with Homebrew:
$ brew install cairo
Download the [DejaVu Sans](https://dejavu-fonts.github.io) font and install it on your system.