From f960a021813ae4ca01a19bac48c6254f5862bf45 Mon Sep 17 00:00:00 2001 From: Martin Peck Date: Tue, 2 Dec 2008 18:53:41 +0000 Subject: Add additional options for single file py2exe builds. git-svn-id: file:///home/or/svnrepo/updater/trunk@17443 55e972cd-5a19-0410-ae62-a4d7a52db4cd --- setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setup.py b/setup.py index 529ff2c..7ac37f7 100644 --- a/setup.py +++ b/setup.py @@ -123,6 +123,17 @@ extra_args = { } if 'py2exe' in sys.argv: # Tells the py2exe executable what module to actually execute. extra_args["console"] = ['lib/thandy/ClientCLI.py'] + # The following options tell py2exe to create a single exeutable file instead + # of a directory of dependencies or exe and zip library. + # Some additional modules are specified explicitly because the way they are + # loaded prevents py2exe from tracing the dependencies automagically. + extra_args["zipfile"] = None + extra_args["options"] = { + 'py2exe': { + 'bundle_files': 1, + 'includes': ["linecache", "getopt", "json"] + } + } setup(name='Thandy', version=VERSION, -- cgit v1.2.3