9.5.4 Python

Here are instructions for python/ruby SWIG bindings. These instructions
assume Python and/or Ruby are installed. You might need to install
a more recent version of Python (for example MacPython from the Python
website) than the one that comes pre-bundled with OS X depending
on the version of your system.

At the top level directory do :

./configure –enable-bindings

make

sudo make install

Assuming that python and ruby have been locating your bindings
have been compiled and installed. To check that your bindings
are installed.