# HG changeset patch # User Thomas Arendsen Hein # Date 2006-10-03 09:30:59 # Node ID 3dba9ec8916489df2aba71fc29425cb5d3ad24ef # Parent f7a8228fde17cb2ecc5b60f4ef80d610124a758f Applied coding style to setup.py diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -55,9 +55,9 @@ try: self.includes = [] else: self.includes = self.includes.split(',') - mercurial.packagescan.scan(self.build_lib,'mercurial') - mercurial.packagescan.scan(self.build_lib,'mercurial.hgweb') - mercurial.packagescan.scan(self.build_lib,'hgext') + mercurial.packagescan.scan(self.build_lib, 'mercurial') + mercurial.packagescan.scan(self.build_lib, 'mercurial.hgweb') + mercurial.packagescan.scan(self.build_lib, 'hgext') self.includes += mercurial.packagescan.getmodules() build_exe.finalize_options(self) except ImportError: @@ -79,26 +79,28 @@ 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', - author_email='mpm@selenic.com', - url='http://selenic.com/mercurial', - description='Scalable distributed SCM', - license='GNU GPL', - packages=['mercurial', 'mercurial.hgweb', 'hgext'], - ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), - Extension('mercurial.bdiff', ['mercurial/bdiff.c'])], - data_files=[('mercurial/templates', - ['templates/map'] + - glob.glob('templates/map-*') + - glob.glob('templates/*.tmpl')), - ('mercurial/templates/static', - glob.glob('templates/static/*'))], - cmdclass=cmdclass, - scripts=['hg', 'hgmerge'], - options=dict(bdist_mpkg=dict(zipdist=True, - license='COPYING', - readme='contrib/macosx/Readme.html', - welcome='contrib/macosx/Welcome.html')), - **py2exe_opts) + version=mercurial.version.get_version(), + author='Matt Mackall', + author_email='mpm@selenic.com', + url='http://selenic.com/mercurial', + description='Scalable distributed SCM', + license='GNU GPL', + packages=['mercurial', 'mercurial.hgweb', 'hgext'], + ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), + Extension('mercurial.bdiff', ['mercurial/bdiff.c'])], + data_files=[ + ('mercurial/templates', + ['templates/map'] + + glob.glob('templates/map-*') + + glob.glob('templates/*.tmpl')), + ('mercurial/templates/static', glob.glob('templates/static/*')), + ], + cmdclass=cmdclass, + scripts=['hg', 'hgmerge'], + options=dict(bdist_mpkg=dict(zipdist=True, + license='COPYING', + readme='contrib/macosx/Readme.html', + welcome='contrib/macosx/Welcome.html')), + **py2exe_opts)