From 54720b15ca6ac7debd3bd8dd4e883464ce051067 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 20 Mar 2011 11:28:53 +0000 Subject: [PATCH] Added tkinter to cx_freeze explicit excludes because v4.2.3 started to falsely include it. --- package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.py b/package.py index 1848dfe2..9a720092 100644 --- a/package.py +++ b/package.py @@ -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))