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

Re: [pygame] Re: Convert to numpy?



Lars Friedrich wrote:

Christopher Stone wrote:


I think it is just a matter of changing the header file location in
Setup.in. And maybe also change the INSTALL readme file. I will
probably patch it if no one else does, but I want to wait until
Fedora's numpy package places the header files in /usr/include instead
of the non-standard location they are packaged in now.



Is there a pygame-binary for windows with numpy-support available, now? I would be
interested, because I am using the .ctype-functions / -fields of numpy-arrays,
which are not available in Numeric.


The current version of Pygame has no support for numpy, and adding it in would be significant work. I'm working on an alternative implementation of Pygame, written entirely in Python, which does support numpy (in addition to numarray and Numeric). It's not quite feature complete, but is getting there.

No Windows binaries (no compilation needed, of course) -- you can grab the latest with subversion. http://pygame.org/ctypes

Alternatively you could convert access the Numeric array via numpy using the current version of Pygame using numpy's frombuffer() array method.

Alex.