Show More
@@ -36,7 +36,8 try: | |||||
36 | self.includes = [] |
|
36 | self.includes = [] | |
37 | self.includes += mercurial.packagescan.getmodules(self.build_lib,'mercurial') |
|
37 | self.includes += mercurial.packagescan.getmodules(self.build_lib,'mercurial') | |
38 | build_exe.finalize_options(self) |
|
38 | build_exe.finalize_options(self) | |
39 |
except ImportError: |
|
39 | except ImportError: | |
|
40 | py2exe_for_demandload = None | |||
40 |
|
41 | |||
41 |
|
42 | |||
42 | # specify version string, otherwise 'hg identify' will be used: |
|
43 | # specify version string, otherwise 'hg identify' will be used: | |
@@ -50,6 +51,9 class install_package_data(install_data) | |||||
50 |
|
51 | |||
51 | try: |
|
52 | try: | |
52 | mercurial.version.remember_version(version) |
|
53 | mercurial.version.remember_version(version) | |
|
54 | cmdclass = {'install_data': install_package_data} | |||
|
55 | if py2exe_for_demandload is not None: | |||
|
56 | cmdclass['py2exe'] = py2exe_for_demandload | |||
53 | setup(name='mercurial', |
|
57 | setup(name='mercurial', | |
54 | version=mercurial.version.get_version(), |
|
58 | version=mercurial.version.get_version(), | |
55 | author='Matt Mackall', |
|
59 | author='Matt Mackall', | |
@@ -64,8 +68,7 try: | |||||
64 | ['templates/map'] + |
|
68 | ['templates/map'] + | |
65 | glob.glob('templates/map-*') + |
|
69 | glob.glob('templates/map-*') + | |
66 | glob.glob('templates/*.tmpl'))], |
|
70 | glob.glob('templates/*.tmpl'))], | |
67 | cmdclass = { 'install_data' : install_package_data, |
|
71 | cmdclass=cmdclass, | |
68 | 'py2exe' : py2exe_for_demandload}, |
|
|||
69 | scripts=['hg', 'hgmerge'], |
|
72 | scripts=['hg', 'hgmerge'], | |
70 | console = ['hg']) |
|
73 | console = ['hg']) | |
71 | finally: |
|
74 | finally: |
General Comments 0
You need to be logged in to leave comments.
Login now