From: Daira Hopwood Date: Sat, 2 May 2015 20:38:05 +0000 (+0100) Subject: Allow working with Twisted >= 13 on Windows if pywin32 is manually installed. fixes... X-Git-Tag: allmydata-tahoe-1.10.1a1~13 X-Git-Url: https://git.rkrishnan.org/Site/Content/Exhibitors/FOOURL?a=commitdiff_plain;h=c2874a70736a162d1f398ee86b3942d50443fd5e;p=tahoe-lafs%2Ftahoe-lafs.git Allow working with Twisted >= 13 on Windows if pywin32 is manually installed. fixes #2416 Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/_auto_deps.py b/src/allmydata/_auto_deps.py index 26eaee1a..9c0bdab2 100644 --- a/src/allmydata/_auto_deps.py +++ b/src/allmydata/_auto_deps.py @@ -110,7 +110,14 @@ if not hasattr(sys, 'frozen'): # and # . +_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.