Differences between revisions 1 and 9 (spanning 8 versions)
Revision 1 as of 2004-01-12 10:23:19
Size: 1593
Editor: cache1-1-ffm-vpn
Comment:
Revision 9 as of 2004-02-14 16:42:23
Size: 2042
Editor: M376P028
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
within samples/extending Thomas Heller gives a setup.py scipt which automagically calls [http://www.jrsoftware.org/isinfo.php InnoSetup] to create a great looking (and perfectly working) Windows-Installer. Yes, really, ONE setup.exe is created which contains ALL stuff to have a readily installable Software out of your product. within samples/extending Thomas Heller gives a Py2Exe setup.py scipt which automagically calls [http://www.jrsoftware.org/isinfo.php InnoSetup] to create a great looking (and perfectly working) Windows-Installer. Yes, really, ONE setup.exe is created which contains ALL stuff to have a readily installable Software out of your product.
Line 9: Line 9:
   2.240.512 wxc.pyd
   3.416.064 wxmsw24uh.dll
{{{
2.240.512 wxc.pyd 
3.416.064 wxmsw24uh.dll
}}}
Line 12: Line 14:
To modules you cannnot skip. In addition there is as allways

  974.915 python23.dll
Two modules you cannnot skip. In addition there is as allways
  
{{{
974.915 python23.dll
}}}
Line 20: Line 24:
    28 Datei(en) 9.549.525 Bytes (in lib) {{{
28 Datei(en) 9.549.525 Bytes (in lib)
}}}
Line 22: Line 28:
     2 Datei(en) 1.011.779 Bytes (in prog) {{{
2 Datei(en) 1.011.779 Bytes (in prog)
}}}
Line 33: Line 41:
        print >> ofi, r"[Setup]"
        print >> ofi, r"AppName=%s" % self.name
        print >> ofi, r"AppVerName=%s %s" % (self.name, self.version)
        print >> ofi, r"DefaultDirName=c:\ghum\%s" % self.name
        
print >> ofi, r"DefaultGroupName=%s" % self.name
        print >> ofi, r"Compression=bzip"
        print >> ofi
{{{
#!python
print >> ofi, r"[Setup]"
print >> ofi, r"AppName=%s" % self.name
print >> ofi, r"AppVerName=%s %s" % (self.name, self.version)
print >> ofi, r"DefaultDirName={pf}\%s" % self.name
print >> ofi, r"DefaultGroupName=%s" % self.name
print >> ofi, r"Compression=bzip"
print >> ofi
}}}
Line 44: Line 54:
   print >> ofi, r"Compression=bzip" {{{
#!python
print >> ofi, r"Compression=bzip"
}}}
Line 49: Line 62:
    4.335.283 setup.exe {{{
4.335.283 setup.exe
}}}
Line 54: Line 69:
= Remarks =
Line 55: Line 71:



 * I ([http://videocapture.sourceforge.net/ MGr]) get for my application even smaller files when using 7-zip instead of bzip. To use 7-zip one has to specify "Compression=none" in the generated installer script (*.iss) and then manually load the script into [http://www.istool.org/ ISTool], which is a front end to Inno Setup. Clicking at the 'Options' button and selecting '7-zip' in the compression combo box does the trick.

Something great

within samples/extending Thomas Heller gives a Py2Exe setup.py scipt which automagically calls [http://www.jrsoftware.org/isinfo.php InnoSetup] to create a great looking (and perfectly working) Windows-Installer. Yes, really, ONE setup.exe is created which contains ALL stuff to have a readily installable Software out of your product.

also large

I programm using wxPython. A great library, a large library.

2.240.512 wxc.pyd 
3.416.064 wxmsw24uh.dll

Two modules you cannnot skip. In addition there is as allways

974.915 python23.dll

giving more than 6 Megabyte with no line of code written

In total:

28 Datei(en)      9.549.525 Bytes  (in lib)

and

2 Datei(en)      1.011.779 Bytes   (in prog)

summing up to 10.5 Megabyte ... not much with DSL, but... shocking, isn't it?

get it smaller

In the standard configuration [http://www.jrsoftware.org/isinfo.php InnoSetup] compressed it down to around 6.5 Megabyte.

I changed the setup.py to contain

   1 print >> ofi, r"[Setup]"
   2 print >> ofi, r"AppName=%s" % self.name
   3 print >> ofi, r"AppVerName=%s %s" % (self.name, self.version)
   4 print >> ofi, r"DefaultDirName={pf}\%s" % self.name
   5 print >> ofi, r"DefaultGroupName=%s" % self.name
   6 print >> ofi, r"Compression=bzip" 
   7 print >> ofi

... the special line is

   1 print >> ofi, r"Compression=bzip" 

the result

4.335.283 setup.exe 

Quite an OK download ... and I use ZODB and Elementtree and pythoncom and and and....

Remarks

  • I ([http://videocapture.sourceforge.net/ MGr]) get for my application even smaller files when using 7-zip instead of bzip. To use 7-zip one has to specify "Compression=none" in the generated installer script (*.iss) and then manually load the script into [http://www.istool.org/ ISTool], which is a front end to Inno Setup. Clicking at the 'Options' button and selecting '7-zip' in the compression combo box does the trick.

BetterCompression (last edited 2008-07-08 11:27:44 by localhost)