]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Allow working with Twisted >= 13 on Windows if pywin32 is manually installed. fixes...
authorDaira Hopwood <daira@jacaranda.org>
Sat, 2 May 2015 20:38:05 +0000 (21:38 +0100)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 13 May 2015 11:44:21 +0000 (12:44 +0100)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/_auto_deps.py

index 26eaee1ab86cff7d5f6030937eff7215b9dd530a..9c0bdab2be6b4d7ffb95027eea9188fbc7a0e583 100644 (file)
@@ -110,7 +110,14 @@ if not hasattr(sys, 'frozen'):
 # <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2249> and
 # <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2028>.
 
+_use_old_Twisted_and_Nevow = False
 if sys.platform == "win32":
+    try:
+        import win32api
+    except ImportError:
+        _use_old_Twisted_and_Nevow = True
+
+if _use_old_Twisted_and_Nevow:
     install_requires += [
         # * On Windows we need at least Twisted 9.0 to avoid an indirect
         #   dependency on pywin32.