fix a warning when py2exe is not used
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 04 Nov 2005 11:37:45 -0800
changeset 1508 b254243b7159
parent 1507 cd8fadd8c689
child 1509 46a07392cf28
child 1517 b582dbc16165
fix a warning when py2exe is not used
setup.py
--- a/setup.py	Fri Nov 04 10:24:05 2005 -0800
+++ b/setup.py	Fri Nov 04 11:37:45 2005 -0800
@@ -72,8 +72,10 @@
 try:
     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(),
           author='Matt Mackall',
@@ -90,6 +92,6 @@
                        glob.glob('templates/*.tmpl'))],
           cmdclass=cmdclass,
           scripts=['hg', 'hgmerge'],
-          console = ['hg'])
+          **py2exe_opts)
 finally:
     mercurial.version.forget_version()