From: zooko Date: Fri, 9 Nov 2007 19:05:41 +0000 (+0530) Subject: zfec: setup: keep trying to setup even if ez_setup.py isn't importable X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/simplejson/frontends?a=commitdiff_plain;h=e968c280d894d881d6bfc17cfdc7b5e2e5419a2e;p=tahoe-lafs%2Fzfec.git zfec: setup: keep trying to setup even if ez_setup.py isn't importable darcs-hash:2e0d50a2352a0aaa6788e9720063613ad30688bf --- 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