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

Re: [pygame] Can pygame have all compiled modules in one file ?



Dmitry Borisov wrote:
I'm just curious, is there any posibility to have compiled pygame pyd/so files to be in 1 file ?
I understand that you want some flexibility by loading them online and having some vars from OS, but still want to decrease number of files I'm delivering to the users to minimum. Right now when I compile with py2exe it produces about 18 .pyd files for pygame.
I don't think it could be done without rewriting how pygame modules work with each other. There are probably ways you could clean up a py2exe distribution. First you could just hardcode some subdirectories into the sys.path and after you build the executable, move the PYDs and DLLs into that directory. I'm pretty sure all the DLL's will be found as long as they are in the same directory as the PYD.

I've saw someone had a project where they hacked py2exe to put the PYD files into a subdirectory. Can't remember anything else about it, but it exists out there somewhere.

A messy install directory isn't the end of the world. For everything I've used PY2EXE on I wrap it up in a nice installer with Start Menu icons for the EXE, the README, and anything else of interest. I doubt any users have really ever looked inside the actual game directory.