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

Re: [pygame] When is pygame 1.8 coming out?



Bo Jangeborg wrote:
Kamilche skrev:
Luke Paireepinart wrote:

Also - I was trying to make DLL's for Python in the past, and discovered the gnarly 'must have the same compiler Python was compiled with' error. Is that gone with Python 2.5?

Basically - if I go to the effort of making a vanilla C DLL, will it be callable from Python ctypes even though it was compiled with a different compiler? And will this C DLL work on all platforms, or will I have to recompile it for each platform and call different DLL's based on endianness?
I've used ctypes to interface with a few different DLLs, and some of them were compiled with mingW, I think, and I believe Python 2.5 is compiled with Visual Studio? DLLs are only available on Windows. They're called .so files on Linux (and probably mac too.) Just add a line at the top of your script that determines using env vars what OS you're on, and load the correct file. If it implements the same features across platforms you shouldn't have any problems.
How do I make a PYD file?
Don't you think it might be better to just work on pygame-ctypes a bit than to re-implement it?


Well, I suppose I could fix up all the broken references enough to try it out. I just wish pygame was receptive to other people's ideas. I've submitted improvements to the examples before, and added features like cross-platform 'full screen mode', but they never got put into the software.

I'll take another look at pygame ctypes later today.

--Kamilche



What's stopping you from joining the developers ? It's a collaborative effort of volunteers as far as I know.

Bo)

I tried. I submitted some changes, some code samples, went to a Thursday online meeting - nothing came of it. In chat it was like I was invisible, and no one could hear me.

I was interested enough to help, but not interested enough to beg for admittance, which is apparently what it takes.

--Kamilche