Das stimmt, aber wenn es nur darum geht, das es etwas kleiner werden soll, kann man einfach alles etwas besser komprimieren:joe hat geschrieben: py2exe ist beim einsammeln der Module sehr großzügig. Da kann man nachträglich 'ne menge wieder rausschmeißen, auch aus der library.zip.
http://starship.python.net/crew/theller ... ompression
Schöner wäre es natürlich, wenn wirklich nur die benötigten Teile "eingebunden" werden... Und da wir schon mal dabei sind - Wirklich cool wäre es, wenn nur eine einzelne EXE-Datei herraus kommen würdeRepacking the "library.zip" with [WWW]7-ZIP saving 357KB (577KB original to 220KB 7ZIP compressed)
Using [WWW]UPX the executable packer to compress *.pyd, *.dll and *.exe Files:
Example: _sre.pyd, _winreg.pyd, python23.dll, unicodedata.pyd, w9xpopen.exe, zlib.pyd 1516,2KB original to 584KB compressed)
Everything together: Original Size: 2093,2 compressed: 804KB !!!
A shot Windows Batch-File to automate (see WinBatch):
7z.exe -aoa x library.zip -olibrary\
del library.zip
cd library\
7z.exe a -tzip -mx9 ..\library.zip -r
cd..
rd library /s /q
upx.exe --best *.*
