[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r17443: {updater} Add additional options for single file py2exe builds. (updater/trunk)



Author: coderman
Date: 2008-12-02 13:53:41 -0500 (Tue, 02 Dec 2008)
New Revision: 17443

Modified:
   updater/trunk/setup.py
Log:
Add additional options for single file py2exe builds.

Modified: updater/trunk/setup.py
===================================================================
--- updater/trunk/setup.py	2008-12-02 17:35:05 UTC (rev 17442)
+++ updater/trunk/setup.py	2008-12-02 18:53:41 UTC (rev 17443)
@@ -123,6 +123,17 @@
 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,