From 30e28bb3c5f2afce43cd9a349a5e68e4a7f01afb Mon Sep 17 00:00:00 2001
From: Zooko O'Whielacronx <zooko@zooko.com>
Date: Thu, 20 Sep 2007 11:05:40 -0700
Subject: [PATCH] setup: add pywin32 to our dependencies if sys.platform ==
 "win32"

---
 calcdeps.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/calcdeps.py b/calcdeps.py
index 5c582018..fb0a0e69 100644
--- a/calcdeps.py
+++ b/calcdeps.py
@@ -1,5 +1,5 @@
 
-import os.path
+import os.path, sys
 
 # This form is used when the unpacked source distribution is copied into our
 # tree:
@@ -10,7 +10,7 @@ import os.path
 
 dependency_tarballs=[ "file:" + os.path.join("misc", "dependencies", fn)
                       for fn in os.listdir(os.path.join("misc", "dependencies"))
-                      if fn.endswith(".tar.gz") ]
+                      if fn.endswith(".tar.gz") or fn.endswith(".zip") ]
 
 dependency_links=["http://allmydata.org/trac/tahoe/wiki/Dependencies"] + dependency_tarballs
 
@@ -27,6 +27,10 @@ install_requires=["zfec >= 1.0.3",
                   "zope.interface >= 3.0",
                   ]
 
+if sys.platform == 'win32':
+    install_requires.append("pywin32")
+    
+
 # Ubuntu Dapper includes nevow-0.6.0 and twisted-2.2.0, both of which work.
 # However, setuptools doesn't know about them, so our install_requires=
 # dependency upon nevow causes our 'build-deps' step to try and build the
-- 
2.45.2