1) Install Python 2.7 from http://www.python.org/getit/ (be sure to get the OS X 10.6 version)
1.5) Update your shell's environment to pick the correct version by default by running Update Shell Profile.command in the /Applications/Python27/ directory. Make sure your shell is properly configured:
- Code: Select all
python --version
2) Get and copy the following frameworks to /Library/Frameworks/:
http://www.libsdl.org/release/SDL-1.2.14.dmg (or a newer 1.2.x version. Note that you need at least 1.2.14 for it to work properly)
http://www.libsdl.org/projects/SDL_imag ... 1.2.10.dmg (or newer 1.2.x version. You need at least 1.2.10 though!)
http://www.libsdl.org/projects/SDL_ttf/ ... 2.0.10.dmg (or newer 2.0.x version)
http://www.libsdl.org/projects/SDL_mixe ... 1.2.11.dmg (or newer 1.2.x version)
3) Get and install the latest numpy release for Mac/Python2.7 from
http://numpy.scipy.org/
4) Get and install the latest libjpeg and libpng binaries from
http://ethan.tira-thompson.com/Mac_OS_X_Ports.html
4.5) Apparently, you need to delete the links to the dynamic version of these libraries before building; otherwise your pygame build will have dependencies that will make deploying your app difficult. You can always re-create the links if needed. I did this:
- Code: Select all
cd /usr/local/lib
sudo rm libjpeg.dylib
sudo rm libpng.dylib
5) Get the pygame release
http://pygame.org/ftp/pygame-1.9.1release.tar.gz
- Code: Select all
tar xvzf pygame-1.9.1release.tar.gz
cd pygame-1.9.1release.tar.gz
python config.py
You should see this:
- Code: Select all
Hunting dependencies...
Framework SDL found
Framework SDL_ttf found
Framework SDL_image found
Framework SDL_mixer found
Framework smpeg not found
PNG : found
JPEG : found
SCRAP : not found
PORTMIDI: not found
Framework CoreMidi found
Now you're ready to build and install.
- Code: Select all
sudo python setup.py install
