Mercurial > hg > mercurial-crew-with-dirclash
comparison setup.py @ 1508:b254243b7159
fix a warning when py2exe is not used
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 04 Nov 2005 11:37:45 -0800 |
parents | a7e8408ac79c |
children | 18f3224da392 |
comparison
equal
deleted
inserted
replaced
1507:cd8fadd8c689 | 1508:b254243b7159 |
---|---|
70 install_data.finalize_options(self) | 70 install_data.finalize_options(self) |
71 | 71 |
72 try: | 72 try: |
73 mercurial.version.remember_version(version) | 73 mercurial.version.remember_version(version) |
74 cmdclass = {'install_data': install_package_data} | 74 cmdclass = {'install_data': install_package_data} |
75 py2exe_opts = {} | |
75 if py2exe_for_demandload is not None: | 76 if py2exe_for_demandload is not None: |
76 cmdclass['py2exe'] = py2exe_for_demandload | 77 cmdclass['py2exe'] = py2exe_for_demandload |
78 py2exe_opts['console'] = 'hg' | |
77 setup(name='mercurial', | 79 setup(name='mercurial', |
78 version=mercurial.version.get_version(), | 80 version=mercurial.version.get_version(), |
79 author='Matt Mackall', | 81 author='Matt Mackall', |
80 author_email='mpm@selenic.com', | 82 author_email='mpm@selenic.com', |
81 url='http://selenic.com/mercurial', | 83 url='http://selenic.com/mercurial', |
88 ['templates/map'] + | 90 ['templates/map'] + |
89 glob.glob('templates/map-*') + | 91 glob.glob('templates/map-*') + |
90 glob.glob('templates/*.tmpl'))], | 92 glob.glob('templates/*.tmpl'))], |
91 cmdclass=cmdclass, | 93 cmdclass=cmdclass, |
92 scripts=['hg', 'hgmerge'], | 94 scripts=['hg', 'hgmerge'], |
93 console = ['hg']) | 95 **py2exe_opts) |
94 finally: | 96 finally: |
95 mercurial.version.forget_version() | 97 mercurial.version.forget_version() |