Show More
@@ -13,13 +13,13 b' import mercurial.version' | |||||
13 |
|
13 | |||
14 | # py2exe needs to be installed to work |
|
14 | # py2exe needs to be installed to work | |
15 | try: |
|
15 | try: | |
16 |
import py2exe |
|
16 | import py2exe | |
17 |
|
17 | |||
18 | # Due to the use of demandload py2exe is not finding the modules. |
|
18 | # Due to the use of demandload py2exe is not finding the modules. | |
19 |
# packagescan.getmodules creates a list of modules included in |
|
19 | # packagescan.getmodules creates a list of modules included in | |
20 | # the mercurial package plus depdent modules. |
|
20 | # the mercurial package plus depdent modules. | |
21 |
import mercurial.packagescan |
|
21 | import mercurial.packagescan | |
22 |
from py2exe.build_exe import py2exe as build_exe |
|
22 | from py2exe.build_exe import py2exe as build_exe | |
23 |
|
23 | |||
24 | class py2exe_for_demandload(build_exe): |
|
24 | class py2exe_for_demandload(build_exe): | |
25 | """ overwrites the py2exe command class for getting the build |
|
25 | """ overwrites the py2exe command class for getting the build | |
@@ -34,7 +34,8 b' try:' | |||||
34 | # Sets the 'includes' option with the list of needed modules |
|
34 | # Sets the 'includes' option with the list of needed modules | |
35 | if not self.includes: |
|
35 | if not self.includes: | |
36 | self.includes = [] |
|
36 | self.includes = [] | |
37 |
self.includes += mercurial.packagescan.getmodules(self.build_lib, |
|
37 | self.includes += mercurial.packagescan.getmodules(self.build_lib, | |
|
38 | 'mercurial') | |||
38 | build_exe.finalize_options(self) |
|
39 | build_exe.finalize_options(self) | |
39 | except ImportError: |
|
40 | except ImportError: | |
40 | py2exe_for_demandload = None |
|
41 | py2exe_for_demandload = None |
General Comments 0
You need to be logged in to leave comments.
Login now