setup.py is the standard install script.

Targetting i386#

On Mac, in particular if you are using virtualenv, you can end up with problems if your system python is x86_64 and your virtualenv python is i386 (and possibly ppc). To target i386:

$ env CFLAGS='-arch i386' LDFLAGS='-arch i386' python setup.py install

Python - Mac.Shell