On 10/27/2008 7:44 PM, Simone Ramacci - Simosito.it wrote: > matt wilkie ha scritto: >> Hello, >> >> Thanks for building the pyinstaller project and the continued efforts >> to keep it alive. I have found it very easy to get off the >> ground. :) Does anyone have any tips for making the resultant .exe's >> smaller? UPX is only making a 2% difference. The script is pretty >> simple, less than 750 lines, >> http://code.google.com/p/maphew/source/browse/trunk/gis/o4w_extras/bin/apt.py >> but the resultant exe is approaching 3mb.
Have a look at where you're wasting space by running ArchiveViewer.py over the resulting executable. Try with older versions of Python, like 2.3. python.dll grew a lot in 2.4 and 2.5, and maybe you don't need all those new features. Another solution is to compile yourself a stripped down version of python.dll. It's pretty easy (there's a single file where all the builtin modules are linked: just comment out the ones you don't need). I have been using a stripped down version of python25.dll for a long time, which was much less than a half than the original version and still be very useful for most projects. -- Giovanni Bajo Develer S.r.l. http://www.develer.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyInstaller" 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/PyInstaller?hl=en -~----------~----~----~----~------~----~------~--~---
