# HG changeset patch # User Benoit Boissinot # Date 2005-11-04 19:37:45 # Node ID b254243b71595549519a558b1e134a6312235480 # Parent cd8fadd8c6899583b1b5d1c399275ad2c90c4056 fix a warning when py2exe is not used diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -72,8 +72,10 @@ class install_package_data(install_data) 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 @@ try: glob.glob('templates/*.tmpl'))], cmdclass=cmdclass, scripts=['hg', 'hgmerge'], - console = ['hg']) + **py2exe_opts) finally: mercurial.version.forget_version()