]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: add pywin32 to our dependencies if sys.platform == "win32"
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 20 Sep 2007 18:05:40 +0000 (11:05 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 20 Sep 2007 18:05:40 +0000 (11:05 -0700)
calcdeps.py

index 5c582018b51a786b65086f0b31891327f189e812..fb0a0e69c614562c30ca9e12619f35c9565965c4 100644 (file)
@@ -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