|
⇤ ← Revision 1 as of 2003-11-01 01:14:49
Size: 366
Comment:
|
Size: 396
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,
)