Jean-Michelle,
Okay, now I understand what you are talking about, the bundle option.
That option is still available and I am using it. That's the python.zip
file I mentioned in my post.
However, if you just use the bundle option, the zip file it creates
includes not only the compiled application files, but also compiled
library files (.pyc, .dll and .pyd). In my application, this file is
5.63 meg, and it will only change when I use new library imports in the
application. My approach separates the application-specific .pyo files
into a separate zip file which is much smaller. It's the only file
likely to change for minor program changes.
There is a bundle option to keep the .pyd and .dll files out of the .zip
file, but then you have to deal with those as separate files in the
installation directory.
zipfile is a parameter to the call to distutils.core.setup:
from distutils.core import setup
setup(
datafiles = ...,
options = ...,
zipfile = None,
windows = ...
)
I don't use zipfile = None as that moves the data that would normally be
in the zipfile to the .exe. Since I have two separate .exe files (one
for the 'main' program, one for the 'setup' program), I want the .exe
files to be as small as possible.
With the method I describe, the big zip file created for the two
programs is the same, so I can just distribute one copy.
Mark
ยทยทยท
On Mon, 2008-02-11 at 19:57 +0100, jmf wrote:
Mark Erbaugh,
On Mon, 2008-02-11 at 17:23 +0100, jmf wrote:
> > Mark Erbaugh
>
> Stupid question. Why are you not distributing your application(s)
> without the libs packed in the library.zip as it was the case
> in previous py2exe releases?
> In that way, it is much simple to update a single file. If I recall
> correctly, py2exe has an option to do it.I wasn't aware of this option. Do you have details?
------
I do not find this info on the "new" web site http://www.py2exe.org/
Luckily I saved the old py2exe on my hd. Excerpt:
===========
Newspy2exe 0.6.3 released (2005/10/06)
dll-excludes is now available on the command line and can be used to exclude
msvcr71.dll and w9xpopen.exe.....
The bundle option
===========
I would be surprised if this option disappeared. And if you succeed and you can
refresh my memory, I would be glad.Where in the setup and how do we use this 'zipfile=None' option?