setup.py
changeset 1308 2073e5a71008
parent 1284 59d07a6bd513
equal deleted inserted replaced
1285:1546c2aa6b30 1308:2073e5a71008
    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):