From: Eric B. <bi...@ga...> - 2004-07-30 19:05:20
|
Thomas Heller wrote: >Eric Belanger <bi...@ga...> writes: > > >>(you should know that [BitTorrent] also uses py2exe, right?) >> > >Oh, I didn't know that ;-) I knew about that the spambayes Outlook >plugin uses py2exe, though. > > I forgot to mention that BitTorrent also uses wxPython, so thats why I used this case to compare my problem. >>Is there any pointers to slim down my dist size? >> >- ignore the size of the dist directory, and try to compress the > installer as much as possible to reduce the download size. There are > some hints in the wiki, afaik. > > Thats the path im almost 'forced' to follow, since my programming knowledge (sp?) is lacking. Im new to python and im already jumping and trying to make a GUI :) Thank god I had some VB lessons in high school :S >- avoid using wxPython. You could try to make a small gui with pywin32, > or, better yet, switch to a ctypes based gui like venster. IMO these > solutions require more work than using Tkinter or wxPython. > > I have checked the other toolkits you suggested, plus checked this list (http://www.python.org/cgi-bin/moinmoin/GuiProgramming), but since I rely too much on documentations and examples, venster and pywin32 arent good choices for me due to lack of docs, although i liked the idea behind venster. Maybe ill get there in a few years :) On a somewhat related note, i tried to optimize my script that uses wxPython, and the dist folder is not at 9,62 Mb (was over 10 at first). The interesing part is: without wxPython at all (console), the dist size of a script that does the very same thing is 1.26mb. And we didn't talk about compression yet :) >- Look at the .pyd's that py2exe creates, and look into the files it > packs into library.zip. > > It sounds like an extreme solution to me, and Id hate the idea of manually removing the unused parts after every build. Thank you! |