]> git.rkrishnan.org Git - tahoe-lafs/zfec.git/commitdiff
setup: require setuptools >= 0.6c9 on Windows, but >= 0.6c6 on other platforms
authorzooko <zooko@zooko.com>
Wed, 17 Jun 2009 18:02:01 +0000 (23:32 +0530)
committerzooko <zooko@zooko.com>
Wed, 17 Jun 2009 18:02:01 +0000 (23:32 +0530)
Ignore-this: d7b4ee5dd9aa45b7381224e5904d7266
Hopefully this will allow stdeb to work on all Debian derived platforms while also working around that problem that showed itself on Windows with setuptools 0.6c7.

darcs-hash:1b7c0693b82f9c192dc591f35fa6a26c3ae1ea43

zfec/setup.py

index a2f64b3b82b81735ceaeb76393a6dce351b23690..938ca2a9b9df70036df47dbd2d61a5911acb9c2d 100755 (executable)
@@ -18,7 +18,16 @@ try:
 except ImportError:
     pass
 else:
-    use_setuptools(min_version='0.6c9', download_delay=0, to_dir=miscdeps)
+    if sys.platform.lower().startswith('win'):
+        # 0.6c7 on Windows had a problem with multiple overlapping dependencies
+        # on pyutil -- it would end up with the 'pyutil' key set in sys.modules
+        # but the actual code (and the temporary directory in the filesystem in
+        # which the code used to reside) gone, when it needed pyutil again
+        # later.
+        min_version='0.6c9'
+    else:
+        min_version='0.6c6'
+    use_setuptools(min_version=min_version, download_delay=0, to_dir=miscdeps)
 
 from setuptools import Extension, find_packages, setup