add build dependencies to support py2exe's modulefinder

adds windows/depends.py as a container for modules which are needed at runtime
but which py2exe's modulefinder dependency analysis fails to find as requisites.
This commit is contained in:
robk-tahoe 2008-01-09 19:25:38 -07:00
parent 08f445a562
commit 330f84758e
3 changed files with 19 additions and 0 deletions

13
windows/depends.py Normal file
View File

@ -0,0 +1,13 @@
# 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
# 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,
]

View File

@ -1,2 +1,5 @@
import depends # import dependencies so that py2exe finds them
_junk = depends # appease pyflakes
from allmydata.scripts import runner
runner.run(install_node_control=False)

View File

@ -129,6 +129,9 @@ class Tahoe(win32serviceutil.ServiceFramework):
try:
logmsg("main thread startup")
import depends # import dependencies so that py2exe finds them
_junk = depends # appease pyflakes
from twisted.internet import reactor
from twisted.python import log, logfile
from allmydata import client