# HG changeset patch # User Bryan O'Sullivan # Date 2005-09-21 04:29:07 # Node ID 59d07a6bd51302a0eb1e500bddaba59b46f1bf2d # Parent f5faab34f32ed24cf60422e35623f91bdc900c6f Fix Volker's modifications to setup.py for non-Windows systems. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -36,7 +36,8 @@ try: self.includes = [] self.includes += mercurial.packagescan.getmodules(self.build_lib,'mercurial') build_exe.finalize_options(self) -except ImportError: pass +except ImportError: + py2exe_for_demandload = None # specify version string, otherwise 'hg identify' will be used: @@ -50,6 +51,9 @@ class install_package_data(install_data) try: mercurial.version.remember_version(version) + cmdclass = {'install_data': install_package_data} + if py2exe_for_demandload is not None: + cmdclass['py2exe'] = py2exe_for_demandload setup(name='mercurial', version=mercurial.version.get_version(), author='Matt Mackall', @@ -64,8 +68,7 @@ try: ['templates/map'] + glob.glob('templates/map-*') + glob.glob('templates/*.tmpl'))], - cmdclass = { 'install_data' : install_package_data, - 'py2exe' : py2exe_for_demandload}, + cmdclass=cmdclass, scripts=['hg', 'hgmerge'], console = ['hg']) finally: