changeset 3893:070628929e1f

Fix setup.py warning
author Matt Mackall <mpm@selenic.com>
date Fri, 15 Dec 2006 01:17:04 -0600
parents d6cc510dfe5e
children f47afa2401a2
files setup.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Thu Dec 14 20:31:33 2006 -0600
+++ b/setup.py	Fri Dec 15 01:17:04 2006 -0600
@@ -17,6 +17,8 @@
 import mercurial.demandimport
 mercurial.demandimport.enable = lambda: None
 
+extra = {}
+
 # py2exe needs to be installed to work
 try:
     import py2exe
@@ -35,6 +37,8 @@
     except ImportError:
         pass
 
+    extra['console'] = ['hg']
+
 except ImportError:
     pass
 
@@ -70,4 +74,4 @@
                                    license='COPYING',
                                    readme='contrib/macosx/Readme.html',
                                    welcome='contrib/macosx/Welcome.html')),
-      console=['hg'])
+      **extra)