From 9a40ef7526021d9573bf234bb1a7be17afa9179a Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 9 Nov 2007 14:58:03 -0700 Subject: [PATCH] setup: continue running setup.py even if ez_setup.py can't be imported --- setup.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index e40f5446..ea4b0172 100644 --- a/setup.py +++ b/setup.py @@ -20,16 +20,19 @@ # 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' +import sys, re, os.path +try: + from ez_setup import use_setuptools +except ImportError: + pass else: - min_version='0.6a9' -use_setuptools(min_version=min_version, download_base="file:misc/dependencies/", download_delay=0) + if 'cygwin' in sys.platform.lower(): + min_version='0.6c6' + else: + min_version='0.6a9' + use_setuptools(min_version=min_version, download_base="file:misc/dependencies/", download_delay=0) from setuptools import Extension, setup -import re, os.path from calcdeps import install_requires, dependency_links -- 2.45.2