Download
You can download the latest distribution package from the Python Package Index (PyPi). The package contains some extras (e.g. example data) that you won't get if you just install twyg with pip.
Alternatively, you can download the latest development version as a ZIP file from the project's GitHub page (or just clone the repo if you are familiar with git).
Installation
Mac OS X
1. Install MacPorts
The easiest way to install the dependent libraries on Mac OS X is to use MacPorts. If you already have MacPorts on your system, just proceed with the following step. Otherwise, follow these instructions to install MacPorts first.2. Install dependencies
The following command will install cairo, the Pycairo Python bindings, the pip installation tool and Python 2.7 as well, if it's not already installed (this might take a while):
sudo port install py27-pip py27-cairo
After the above command has successfully completed, make Python 2.7 the default installation:
sudo port select --set python python27
3. Install twyg
Install twyg with pip
by issuing the following
command:
sudo pip install twyg