comparison setup.py @ 5197:55860a45bbf2

Enable demandimport only in scripts, not in importable modules (issue605) This way other applications can choose if and when they want this feature, because it might be problematic if those applications rely on ImportError.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 18 Aug 2007 11:37:08 +0200
parents 4574925db5c0
children 5105b119edd2
comparison
equal deleted inserted replaced
5196:86e95b93559a 5197:55860a45bbf2
12 import os 12 import os
13 from distutils.core import setup, Extension 13 from distutils.core import setup, Extension
14 from distutils.command.install_data import install_data 14 from distutils.command.install_data import install_data
15 15
16 import mercurial.version 16 import mercurial.version
17 import mercurial.demandimport
18 mercurial.demandimport.enable = lambda: None
19 17
20 extra = {} 18 extra = {}
21 19
22 # py2exe needs to be installed to work 20 # py2exe needs to be installed to work
23 try: 21 try: