Multiple separate py2exe executables and library.zip

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Mar 1 18:42:21 CET 2009


En Sun, 01 Mar 2009 14:35:01 -0200, The Dude <thedsadude at gmail.com>  
escribió:

>   Each invocation of py2exe creates an executable along with a number of
> other files which need to be distributed with it, including library.zip.  
> I
> noticed that compiling different scripts creates different, and  
> incompatible
> library.zip-s. Suppose I need a directory that contains the result of
> *separate* py2exe calls, then - how can there be a library.zip that fits
> them all?

Just list all targets in a single setup call:

 from distutils.core import setup
import py2exe
setup(console=['foo.py','bar.py'],
       windows=['baz.py'])

If you can't, note that all those library.zip aren't "incompatibles", they  
contain only the required modules for each target. You may obtain the  
union of them all and use that as the single library.zip.

-- 
Gabriel Genellina




More information about the Python-list mailing list