zfec: setup: keep trying to setup even if ez_setup.py isn't importable
authorzooko <zooko@zooko.com>
Fri, 9 Nov 2007 19:05:41 +0000 (00:35 +0530)
committerzooko <zooko@zooko.com>
Fri, 9 Nov 2007 19:05:41 +0000 (00:35 +0530)
darcs-hash:2e0d50a2352a0aaa6788e9720063613ad30688bf

zfec/setup.py

index 42b39a772ffb926e94c8824a386759b55c1aaba6..a923c3ba8e32900db8deb2d5b5c7bd5637c83d08 100755 (executable)
 # Inc., please contact partnerships@allmydata.com and visit
 # http://allmydata.com/.
 
-from ez_setup import use_setuptools
-import sys
-if 'cygwin' in sys.platform.lower():
-    min_version='0.6c6'
+try:
+    from ez_setup import use_setuptools
+except ImportError:
+    pass
 else:
-    min_version='0.6a9'
-use_setuptools(min_version=min_version, download_delay=0)
+    import sys
+    if 'cygwin' in sys.platform.lower():
+        min_version='0.6c6'
+    else:
+        min_version='0.6a9'
+    use_setuptools(min_version=min_version, download_delay=0)
 
 from setuptools import Extension, find_packages, setup