Some of my applications, packaged with py2exe 0.6.3, have a size of
12-13 Mb. I am using InnoSetup (please Google) to distributed them.
With a lzma compression, the size drop down to ~3.5 Mb.
Side questions.
- If I create a "py2exe single file", I can not decrease the size
as given above. I only reach ~10 Mb. Any idea?
- I do not always want to create an installation program, only a self
extracting exe. Any tools with a so good compression as lzma? winrar?
7zip? Thanks.
- I do not always want to create an installation program, only a self
extracting exe. Any tools with a so good compression as lzma? winrar?
7zip? Thanks.
(Win)RAR self extractor ... like a little uncomplicated installer.
There's a post on c.l.p with the same subject but a different source
email, that gives some more details. Is that you too or is it just a
bizarre coincidence?
There are a few things you can do to chop the size down, depending on
how much work you want to do and what your use case is. Compressing
the dlls and executables with UPX will help, at the cost of not being
able to share the dlls between processes, which may result in higher
RAM usage at runtime.
You can get rid of the MSVCRT if you know your target computers will
have it, which is pretty likely, especially in a corporate
environment.
py2exe is very conservative about its dependency checking and you can
often toss a lot of what it adds without a problem.
If you're willing to build a custom wxWidgets and wxPython, you can
probably chop a ton of stuff out that you don't need.
···
On 2/21/06, jmf <jfauth@bluewin.ch> wrote:
Some of my applications, packaged with py2exe 0.6.3, have a size of
12-13 Mb. I am using InnoSetup (please Google) to distributed them.
With a lzma compression, the size drop down to ~3.5 Mb.
Side questions.
- If I create a "py2exe single file", I can not decrease the size
as given above. I only reach ~10 Mb. Any idea?
- I do not always want to create an installation program, only a self
extracting exe. Any tools with a so good compression as lzma? winrar?
7zip? Thanks.