From: Thomas H. <th...@ct...> - 2007-05-15 17:38:29
|
Werner F. Bruhin schrieb: > I build two exe's, both are windows, I think I got this out of a example > and maybe this can be adapted to your needs. > > Code snippet: > > app1 = MetaBase( > script = "yourscript1.py", > other_resources = [(RT_MANIFEST, 1, manifest_template % > dict(prog="Whatever name"))], > icon_resources = [(1, r"images/youricon.ico")], > dest_base = r"prog\app1") > > app2 = MetaBase( > script = "yourscript2.py", > other_resources = [(RT_MANIFEST, 1, manifest_template % > dict(prog="whatever name 2"))], > icon_resources = [(1, r"images/youricon2.ico")], > dest_base = r"prog\app2") > > setup( > classifiers = ["Copyright:: whoever", > ... > "Natural Language :: English"], > windows = [app1, app2], > options = options, > zipfile = zipfile, > data_files = [( > ... > This is the recommended way. If you have to build several executables, comservers, and so on you should build them all in ONE setup script. This way the library.zip file (however it is named) is shared between all of them. I even build both GUI and CONSOLE versions of some programs so that I am able to see debug messages printed by them. Thomas |