comparison setup.py @ 1294:372971e1c40d

Clean up whitespace damage.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 21 Sep 2005 13:33:24 -0700
parents 59d07a6bd513
children 3822f1910c35
comparison
equal deleted inserted replaced
1293:a6ffcebd3315 1294:372971e1c40d
11 11
12 import mercurial.version 12 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
26 directory and for setting the 'includes' option.""" 26 directory and for setting the 'includes' option."""
27 def initialize_options(self): 27 def initialize_options(self):
32 self.set_undefined_options('build', 32 self.set_undefined_options('build',
33 ('build_lib', 'build_lib')) 33 ('build_lib', 'build_lib'))
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,'mercurial') 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
41 42
42 43