Hacker News new | ask | show | jobs
by lloeki 5009 days ago
pip install pygame fails here today, the same way it failed me a year or so ago.

from [0]:

    brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi 
    pip install hg+http://bitbucket.org/pygame/pygame
which works, although installing from pygame's HEAD doe snot sound engaging. What's more, note the date and title.

Pyglet's master branch still uses Carbon, so you have to use a years-old experimental Cocoa branch, which won't be merged because it requires pyobjc[1]. This in turn requires pyobjc, which requires a little trickery to install:

    export MACOSX_DEPLOYMENT_TARGET=10.6    # else it'll fail at finding some libs, and stubbornly tries to stay in 32-bit land
    easy_install pyobjc-core==2.3    # else pyobjc fails to build this by itself
    easy_install pyobjc==2.3   # finally
[0] https://bitbucket.org/pygame/pygame/issue/82/homebrew-on-leo...

[1] https://groups.google.com/forum/?fromgroups=#!topic/pyglet-u...