]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix scoping bugs. refs #2286 2416.allow-twisted-13-on-windows.1 164/head
authorDaira Hopwood <daira@jacaranda.org>
Sat, 2 May 2015 21:32:03 +0000 (22:32 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Sat, 2 May 2015 21:32:03 +0000 (22:32 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
setup.py
src/allmydata/_auto_deps.py

index ea89195a55ce49f784a4cba09c3bab565a5687c6..190c339c2edf15684bad61ea5df9bae1645e63c2 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -64,6 +64,7 @@ else:
 adglobals = {}
 execfile('src/allmydata/_auto_deps.py', adglobals)
 install_requires = adglobals['install_requires']
+setup_requires = adglobals['setup_requires']
 
 if len(sys.argv) > 1 and sys.argv[1] == '--fakedependency':
     del sys.argv[1]
index 4e5c40bc9e936ce0808c4d7cd6e2da2d41839cbd..ba74b1aefd37c67dec40dc57e8efccf7c4b09fe9 100644 (file)
@@ -139,6 +139,8 @@ if not hasattr(sys, 'frozen'):
 # <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2291>
 # <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2286>
 
+setup_requires = []
+
 _use_old_Twisted_and_Nevow = False
 if sys.platform == "win32":
     try:
@@ -151,14 +153,13 @@ if _use_old_Twisted_and_Nevow:
         "Twisted >= 11.1.0, <= 12.1.0",
         "Nevow >= 0.9.33, <= 0.10",
     ]
-    setup_requires = [req for req in install_requires if req.startswith('Twisted')
-                                                      or req.startswith('zope.interface')]
+    setup_requires += [req for req in install_requires if req.startswith('Twisted')
+                                                       or req.startswith('zope.interface')]
 else:
     install_requires += [
         "Twisted >= 13.0.0",
         "Nevow >= 0.11.1",
     ]
-    setup_requires = []
 
 
 # * pyOpenSSL is required in order for foolscap to provide secure connections.