Mercurial > hg
comparison setup.py @ 3238:3dba9ec89164
Applied coding style to setup.py
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 03 Oct 2006 11:30:59 +0200 |
parents | 82cef38fea56 |
children | 7a3edd3f7c3e |
comparison
equal
deleted
inserted
replaced
3237:f7a8228fde17 | 3238:3dba9ec89164 |
---|---|
53 # Sets the 'includes' option with the list of needed modules | 53 # Sets the 'includes' option with the list of needed modules |
54 if not self.includes: | 54 if not self.includes: |
55 self.includes = [] | 55 self.includes = [] |
56 else: | 56 else: |
57 self.includes = self.includes.split(',') | 57 self.includes = self.includes.split(',') |
58 mercurial.packagescan.scan(self.build_lib,'mercurial') | 58 mercurial.packagescan.scan(self.build_lib, 'mercurial') |
59 mercurial.packagescan.scan(self.build_lib,'mercurial.hgweb') | 59 mercurial.packagescan.scan(self.build_lib, 'mercurial.hgweb') |
60 mercurial.packagescan.scan(self.build_lib,'hgext') | 60 mercurial.packagescan.scan(self.build_lib, 'hgext') |
61 self.includes += mercurial.packagescan.getmodules() | 61 self.includes += mercurial.packagescan.getmodules() |
62 build_exe.finalize_options(self) | 62 build_exe.finalize_options(self) |
63 except ImportError: | 63 except ImportError: |
64 py2exe_for_demandload = None | 64 py2exe_for_demandload = None |
65 | 65 |
77 cmdclass = {'install_data': install_package_data} | 77 cmdclass = {'install_data': install_package_data} |
78 py2exe_opts = {} | 78 py2exe_opts = {} |
79 if py2exe_for_demandload is not None: | 79 if py2exe_for_demandload is not None: |
80 cmdclass['py2exe'] = py2exe_for_demandload | 80 cmdclass['py2exe'] = py2exe_for_demandload |
81 py2exe_opts['console'] = ['hg'] | 81 py2exe_opts['console'] = ['hg'] |
82 | |
82 setup(name='mercurial', | 83 setup(name='mercurial', |
83 version=mercurial.version.get_version(), | 84 version=mercurial.version.get_version(), |
84 author='Matt Mackall', | 85 author='Matt Mackall', |
85 author_email='mpm@selenic.com', | 86 author_email='mpm@selenic.com', |
86 url='http://selenic.com/mercurial', | 87 url='http://selenic.com/mercurial', |
87 description='Scalable distributed SCM', | 88 description='Scalable distributed SCM', |
88 license='GNU GPL', | 89 license='GNU GPL', |
89 packages=['mercurial', 'mercurial.hgweb', 'hgext'], | 90 packages=['mercurial', 'mercurial.hgweb', 'hgext'], |
90 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), | 91 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
91 Extension('mercurial.bdiff', ['mercurial/bdiff.c'])], | 92 Extension('mercurial.bdiff', ['mercurial/bdiff.c'])], |
92 data_files=[('mercurial/templates', | 93 data_files=[ |
93 ['templates/map'] + | 94 ('mercurial/templates', |
94 glob.glob('templates/map-*') + | 95 ['templates/map'] + |
95 glob.glob('templates/*.tmpl')), | 96 glob.glob('templates/map-*') + |
96 ('mercurial/templates/static', | 97 glob.glob('templates/*.tmpl')), |
97 glob.glob('templates/static/*'))], | 98 ('mercurial/templates/static', glob.glob('templates/static/*')), |
98 cmdclass=cmdclass, | 99 ], |
99 scripts=['hg', 'hgmerge'], | 100 cmdclass=cmdclass, |
100 options=dict(bdist_mpkg=dict(zipdist=True, | 101 scripts=['hg', 'hgmerge'], |
101 license='COPYING', | 102 options=dict(bdist_mpkg=dict(zipdist=True, |
102 readme='contrib/macosx/Readme.html', | 103 license='COPYING', |
103 welcome='contrib/macosx/Welcome.html')), | 104 readme='contrib/macosx/Readme.html', |
104 **py2exe_opts) | 105 welcome='contrib/macosx/Welcome.html')), |
106 **py2exe_opts) |