Fix demandload bits of setup.py py2exe support
authorMatt Mackall <mpm@selenic.com>
Thu, 14 Dec 2006 20:23:25 -0600
changeset 3890 2eec996f2fb9
parent 3889 a0b18a8e0460
child 3891 6b4127c7d52a
Fix demandload bits of setup.py py2exe support
setup.py
--- a/setup.py	Thu Dec 14 17:32:25 2006 -0600
+++ b/setup.py	Thu Dec 14 20:23:25 2006 -0600
@@ -34,8 +34,7 @@
         pass
 
 except ImportError:
-    py2exe_for_demandload = None
-
+    pass
 
 # specify version string, otherwise 'hg identify' will be used:
 version = ''
@@ -48,10 +47,6 @@
 
 mercurial.version.remember_version(version)
 cmdclass = {'install_data': install_package_data}
-py2exe_opts = {}
-if py2exe_for_demandload is not None:
-    cmdclass['py2exe'] = py2exe_for_demandload
-    py2exe_opts['console'] = ['hg']
 
 setup(name='mercurial',
       version=mercurial.version.get_version(),
@@ -73,4 +68,4 @@
                                    license='COPYING',
                                    readme='contrib/macosx/Readme.html',
                                    welcome='contrib/macosx/Welcome.html')),
-      **py2exe_opts)
+      console=['hg'])