From: Mark H. <mha...@sk...> - 2006-07-29 16:33:05
|
> I observed an issue while using py2exe on multiple targets: > > setup.py: > from distutils.core import setup > import py2exe > > setup(console=["targetA.py"]) > setup(console=["targetB.py"]) > > > If the set of imported modules in the scripts is different in targetA > then targetB: > > targetA: > import os,shutil,re,sys > > targetB: > import os,re,stat > > > Using 'python setup.py py2exe -b1' > generates both executables, library.zip and the MSVCR71.dll, > but targetA will not execute because the library.zip file does > not contain the required shutil module. > > Flipping the order in the setup file: > setup(console=["targetB.py"]) > setup(console=["targetA.py"]) Why not use: setup(console=['targetA.py', 'targetB.py']) This is exactly why the argument is expected to be a list. Your example is no different than invoking py2exe multiple times with different top-level setup scripts - and in that case you really would expect library.zip to be updated. Cheers, Mark |