[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] SDL-ctypes progress



On Tuesday 06 June 2006 16:07, Peter Shinners wrote:
> I couldn't find the right package for numpy on my Dapper system. (Tried
> all manner of scipy and friends).

It looks like numpy isn't bundled. I now have installed:

python2.4-numeric (version 24.2) from ubuntu
python2.4-numarray (version 1.5.2) from ubuntu
numpy-0.9.8 from source

Sigh. After "fixing" the SDL_GetKeyRepeat compatibility issue I got the plasma 
demo working.

OS X has further issues though. Using the Framework Python 2.3 and SDL 1.2.10 
and got a hard error from ObjC (it looked like). Pygame on OS X currently 
uses PyObjC in pygame/macosx.py to perform a bunch of initialisation. 
Fortunately, it also looks that code could be copied directly to SDL-ctypes 
with some minor changes.

There was also an issue in finding the SDL library on OS X - I needed to 
fiddle the line in SDL/dll.py:

  _dll = ctypes.cdll.SDL

to use LoadLibrary specifying the location of the SDL Framework. There are 
ctypes helper functions for discovering the location of Frameworks in OS X 
though so this isn't a problem.


    Richard