From: robk-tahoe Date: Wed, 27 Feb 2008 00:39:07 +0000 (-0700) Subject: mac build: make a couple of build dependency hints soft imports X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/frontends/status?a=commitdiff_plain;h=3603608e6894afa3426699799c88cbd92cb59075;p=tahoe-lafs%2Ftahoe-lafs.git mac build: make a couple of build dependency hints soft imports the existing environment on otto requires a few build hints in order for xml parsing to work properly. these hints are unnecessary, and moreover their import by depends.py is broken, in the 10.5 environment in which zandr's buildslave is running. --- diff --git a/mac/depends.py b/mac/depends.py index 6edc850f..341b41b7 100644 --- a/mac/depends.py +++ b/mac/depends.py @@ -10,9 +10,18 @@ from decimal import Decimal #if sys.platform in ['darwin', ]: from nevow.flat import flatsax from xml.parsers import expat -from xml.sax import expatreader, sax2exts -from xml.sax.drivers2 import drv_pyexpat, drv_xmlproc -junk = [ flatsax, expat, expatreader, sax2exts, drv_pyexpat, drv_xmlproc, ] +from xml.sax import expatreader +junk = [ flatsax, expat, expatreader, ] + +try: + # these build hints are needed for nevow/xml on otto's 10.4 / py2.4 + # environment. they are broken on zandr's 10.5/py2.5 env, but are + # also unnecessary. + from xml.sax import sax2exts + from xml.sax.drivers2 import drv_pyexpat, drv_xmlproc + junk = [ sax2exts, drv_pyexpat, drv_xmlproc, ] +except: + pass