From: Ben Darnell Date: Wed, 3 Feb 2010 23:49:05 +0000 (-0800) Subject: Import setuptools if it's available. X-Git-Tag: v1.0.0~76^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a34dc422e25fbfd8704e652ff787e87a385f2f6d;p=thirdparty%2Ftornado.git Import setuptools if it's available. --- diff --git a/setup.py b/setup.py index 04ccc0807..5cb69df2d 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,12 @@ import distutils.core import sys +# Importing setuptools adds some features like "setup.py develop", but +# it's optional so swallow the error if it's not there. +try: + import setuptools +except ImportError: + pass # Build the epoll extension for Linux systems with Python < 2.6 extensions = []