Locked History Actions

PyGame

How to install pygame on Mountain Lion

Install the 64-bit SDK framework (version 1.2.15) from the dmg available here (just copy SDK.framework/ from the DMG to /Library/Frameworks/).

Download the pygame source tarball (version 1.9.1) from here, then from the untar-ed folder:

% bash
> sudo ln -s /opt/X11/include/X11 /usr/local/include/X11
> python config.py
> export CC='/usr/bin/gcc'
> export LDFLAGS='-arch x86_64'
> export ARCHFLAGS='-arch x86_64'
> python setup.py build
> sudo su
# export CC='/usr/bin/gcc'
# export LDFLAGS='-arch x86_64'
# export ARCHFLAGS='-arch x86_64'
# python setup.py install