summaryrefslogtreecommitdiff
path: root/mkexe.py
blob: f6da31ae37834df86ce17f706eac768b9f907e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
		}
	}
)