From: robk-tahoe Date: Thu, 10 Jan 2008 02:25:38 +0000 (-0700) Subject: add build dependencies to support py2exe's modulefinder X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20//%22?a=commitdiff_plain;h=330f84758e4ea4440d33b730b384853ffc471563;p=tahoe-lafs%2Ftahoe-lafs.git 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. --- diff --git a/windows/depends.py b/windows/depends.py new file mode 100644 index 00000000..937d96be --- /dev/null +++ b/windows/depends.py @@ -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, + ] diff --git a/windows/tahoe.py b/windows/tahoe.py index 7c5d2d0b..f7ceecda 100644 --- a/windows/tahoe.py +++ b/windows/tahoe.py @@ -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) diff --git a/windows/tahoesvc.py b/windows/tahoesvc.py index 11eebb41..64686ab1 100644 --- a/windows/tahoesvc.py +++ b/windows/tahoesvc.py @@ -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