mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
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:
parent
08f445a562
commit
330f84758e
13
windows/depends.py
Normal file
13
windows/depends.py
Normal 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,
|
||||
]
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user