Added tkinter to cx_freeze explicit excludes because v4.2.3 started to falsely include it.

This commit is contained in:
Virgil Dupras 2011-03-20 11:28:53 +00:00
parent 39fc7a91d7
commit 54720b15ca
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ def package_windows(edition, dev):
if op.exists(distdir):
shutil.rmtree(distdir)
cmd = 'cxfreeze --base-name Win32GUI --target-dir "{0}" --target-name "{1}.exe" --icon {2} run.py'
# Since v4.2.3, cx_freeze started to falsely include tkinter in the package. We exclude it explicitly because of that.
cmd = 'cxfreeze --base-name Win32GUI --target-dir "{0}" --target-name "{1}.exe" --icon {2} --exclude-modules tkinter run.py'
target_name = {'se': 'dupeGuru', 'me': 'dupeGuru ME', 'pe': 'dupeGuru PE'}[edition]
icon_path = 'images\\dg{0}_logo.ico'.format(edition)
print_and_do(cmd.format(distdir, target_name, icon_path))