[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Can pygame have all compiled modules in one file ?
- To: pygame-users@seul.org
- Subject: Re: [pygame] Can pygame have all compiled modules in one file ?
- From: Pete Shinners <pete@shinners.org>
- Date: Sat, 01 May 2004 11:45:09 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 01 May 2004 14:46:54 -0400
- In-reply-to: <002c01c42f0f$828dc300$0900a8c0@amr.corp.intel.com>
- References: <002c01c42f0f$828dc300$0900a8c0@amr.corp.intel.com>
- Reply-to: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040216 Debian/1.6.x.1-10
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.