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