|You might want to try this binary installer:|
which requires python.org's 64-bit python 2.7 (the one labelled "10.6")
My build notes are appended.
I built it using:
- Mac OS X 10.6 (the oldest OS that works with python.org's 64-bit python, for maximum backward compatibility)
- python.org 64-bit python 2.7.3
- SDL 1.2.15
- SDL image 1.2.12
- SDL mixer 1.2.12
- SDL ttf 2.0.11
I haven't heavily tested it (I just use it to play sound cues) and I haven't tried MacOS X 10.8. I would be very interested to hear how well it works for you.
Building pygame 1.9.1 on Mac OS X 10.6 using XCode 3.2.6
I was building this for a binary distribution that would run against python.org's 64-bit Python 2.7.2, for use on Mac OS X 10.6 and later.
* Install dependencies:
- libjpeg (use ./configure, make, sudo make install)
- SDL and extra packages (use precompiled framework builds):
- portmidi (use CMake as per the instructions)
* Delete shared libraries in /usr/local/lib (if you want to build a binary installer that can be used elsewhere).
* Check for /usr/local/lib/portmidi.a and if not found, make it a symlink from /usr/local/lib/portmidi_s.a or whatever portmidi got installed.
* Modify config_darwin.py to include '/usr/X11/include' and '/usr/X11/lib':
incdirs = ['/usr/X11/include', '/usr/local/include']
libdirs = ['/usr/X11/lib/', '/usr/local/lib']
(since libpng and libfreetype are standard in /usr/X11)
* Configure pygame and make sure it finds everything:
As of 2012-04-12 on Mac OS X 10.6 I found that png was NOT found. I have no idea why, but I went ahead and installed it manually.
Also SCRAP is not found, but apparently that is normal for Mac OS X.
* Build pygame normally
python setup.py build
bdist_mpkg (or sudo python setup.py install if you don't want a binary installer)