]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: the .tac files created by create_node.py call pkg_resources.require() so that...
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 2 Jan 1970 00:50:05 +0000 (17:50 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 2 Jan 1970 00:50:05 +0000 (17:50 -0700)
Also the create_node.py script itself uses pkg_resources.require() for the same reason.

src/allmydata/scripts/create_node.py

index b1e1536452b598534253b129054be4ce11079030..545e265af45d2ee31aca0ee98be3354ecfb652b1 100644 (file)
@@ -1,5 +1,8 @@
 
 import os, sys
+import pkg_resources
+pkg_resources.require('allmydata-tahoe')
+pkg_resources.require('twisted')
 from twisted.python import usage
 from allmydata.scripts.common import BasedirMixin, NoDefaultBasedirMixin
 
@@ -26,6 +29,9 @@ class CreateIntroducerOptions(NoDefaultBasedirMixin, usage.Options):
 client_tac = """
 # -*- python -*-
 
+import pkg_resources
+pkg_resources.require('allmydata-tahoe')
+pkg_resources.require('twisted')
 from allmydata import client
 from twisted.application import service
 
@@ -38,6 +44,9 @@ c.setServiceParent(application)
 introducer_tac = """
 # -*- python -*-
 
+import pkg_resources
+pkg_resources.require('allmydata-tahoe')
+pkg_resources.require('twisted')
 from allmydata import introducer
 from twisted.application import service