Differences between revisions 1 and 2
Revision 1 as of 2003-11-01 01:14:49
Size: 366
Editor: dclient80-218-75-60
Comment:
Revision 2 as of 2003-11-01 01:27:58
Size: 396
Editor: dclient80-218-75-60
Comment: improved looking
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Question: Is it possible to specify options like "--includes" programaticaly in the setup() '''Question:''' Is it possible to specify options like "--includes" programaticaly in the setup()
Line 4: Line 4:
Answer: '''Answer:'''
Line 7: Line 7:
{{{
Line 8: Line 9:
}}}
Line 11: Line 13:
{{{
Line 14: Line 17:
}}}

Question: Is it possible to specify options like "--includes" programaticaly in the setup() function?

Answer: Yes, distutils has such a functionality, although it seems to be undocumented. You can create a dictionary like this:

opts = {"py2exe": {"includes": "mod1, mod2"}}

and pass it to the setup script:

setup(...
      options = opts,
     )

PassingOptionsToPy2Exe (last edited 2008-07-08 11:27:43 by localhost)