From e968c280d894d881d6bfc17cfdc7b5e2e5419a2e Mon Sep 17 00:00:00 2001
From: zooko <zooko@zooko.com>
Date: Sat, 10 Nov 2007 00:35:41 +0530
Subject: [PATCH] zfec: setup: keep trying to setup even if ez_setup.py isn't
 importable

darcs-hash:2e0d50a2352a0aaa6788e9720063613ad30688bf
---
 zfec/setup.py | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/zfec/setup.py b/zfec/setup.py
index 42b39a7..a923c3b 100755
--- a/zfec/setup.py
+++ b/zfec/setup.py
@@ -21,13 +21,17 @@
 # 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
 
-- 
2.45.2