Glue only depends on one external library, PIL. PIL is a graphic library for python and it’s used to create the sprite images.
By default some Linux distributions and OSX don’t have the required codecs to manipulate jpeg images so it’s necessary to install them manually.
If you are using OSX, the easiest way to install the jpeg decoder is using Homebrew. Before installing Homebrew you’ll need to install Xcode, then you can follow these steps:
$ sudo brew install jpeg
$ sudo pip install glue
# or
$ sudo easy_install glue
If you are using Debian/Ubuntu installing glue is really easy:
$ apt-get install libjpeg62 libjpeg62-dev zlib1g-dev
$ sudo pip install glue
# or
$ sudo easy_install glue
$ easy_install glue
The source code of Glue is available on Github https://github.com/jorgebastida/glue/.