I want py2exe not to create library.zip

Rob Williscroft rtw at freenet.co.uk
Wed Sep 12 23:20:49 CEST 2007

On Wed, 12 Sep 2007 22:09:30 +0200, Laszlo Nagy wrote:

> Hi,
> I want py2exe not to create library.zip. My reason is that the installed
> program will be a self updating program, and it must be able to download
> changes (newer python source files) from the server. So the files should
> not be in library.zip. I tried the --bundle option but apparently it can
> only be used to make the distribution __more__ bundled.

In your setup.py, after the call to setup(), use zipfile.ZipFile
to extract the "library.zip" into a directory called "library" then
delete the .zip.

I can't remember of the top of my head, but you may actually need
to rename the new directory to library.zip for your application
to work.


More information about the Python-list mailing list