Alex Holkner wrote: > Right click on the generated .app file, click Show Package Contents. > Then navigate to Contents/Resources/lib/python2.5. These are the > modules and packages that py2app has decided your project needs. In > my experience it includes far too many by default which are never > referenced. > > The current SVN trunk builds an astraea.app of around 10Mb, of which > 1Mb is the site-packages.zip (some redundant modules in here), and > 5.6Mb in lib-dynload (definitely some in here that aren't needed as > well: crypto, codecs, carbon bindings, sockets, parser, ...). > > I haven't found a good way to remove these packages from py2app; it > doesn't seem to fit into the distutils core and uses its own module > discovery module in place of the stdlib one. > > There's a good project here for an interested somebody: either > patch/hack py2app to include only the modules necessary for pyglet; or > write a better module discovery algorithm; or write a clean py2app > implementation from scratch (the existing one looks overly complex to > my eye, for what it does, which is making it tricky for me to hack). >
Thanks for the help. I'll go ahead and search for some info about forcing py2app to include only what modules are specifically needed and see if that helps. I'll post back if I find anything. Nick --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
