mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 06:42:26 +00:00
3603608e68
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.
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
|
|
# nevow requires all these for its voodoo module import time adaptor registrations
|
|
from nevow import accessors, appserver, static, rend, url, util, query, i18n, flat
|
|
from nevow import guard, stan, testutil, context
|
|
from nevow.flat import flatmdom, flatstan, twist
|
|
from formless import webform, processors, annotate, iformless
|
|
from decimal import Decimal
|
|
|
|
|
|
#if sys.platform in ['darwin', ]:
|
|
from nevow.flat import flatsax
|
|
from xml.parsers import expat
|
|
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
|
|
|
|
|
|
|
|
import allmydata.web
|
|
|
|
# junk to appease pyflakes's outrage at py2exe's needs
|
|
junk = [
|
|
accessors, appserver, static, rend, url, util, query, i18n, flat, guard, stan, testutil,
|
|
context, flatmdom, flatstan, twist, webform, processors, annotate, iformless, Decimal,
|
|
allmydata,
|
|
]
|
|
|