diff options
Diffstat (limited to 'mkexe.py')
-rw-r--r-- | mkexe.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mkexe.py b/mkexe.py new file mode 100644 index 0000000..f6da31a --- /dev/null +++ b/mkexe.py @@ -0,0 +1,30 @@ +from distutils.core import setup +import py2exe + +languages = ["de"] + +setup( + name="dotstr_edit", + version="0.1", + description="A tool for editing the .str files of EA's BFME2", + author="\"Die Voelker Mittelerdes\" Modding Crew", + windows=[ + { + "script": "dotstr_edit.py", + "icon_resources": [(1, "icon.ico")] + } + ], + data_files=[("", ["icon.ico", "icon.png", "wm-icon.ico", "LICENSE", "README.markdown"])] + [(p, [p + "/dotstr_edit.mo"]) for p in ["locale/%s/LC_MESSAGES" % l for l in languages]], + options={ + "py2exe": { + "optimize": 2, + "excludes": ["pywin", "pywin.debugger", "pywin.debugger.dbgcon", + "pywin.dialogs", "pywin.dialogs.list", + "Tkconstants","Tkinter","tcl", "_ssl", "doctest", "pdb", "unittest", "difflib", "inspect", "wave", "xml", "email", "urllib", "urllib2" + ], + "includes": ["zlib"], # So the resulting program is able tu unpack the library, even after recompressing. + "dll_excludes": ["MSVCP90.dll"], + "bundle_files": 2 + } + } +) |