]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Import setuptools if it's available.
authorBen Darnell <bdarnell@beaker.local>
Wed, 3 Feb 2010 23:49:05 +0000 (15:49 -0800)
committerBen Darnell <bdarnell@beaker.local>
Wed, 3 Feb 2010 23:49:05 +0000 (15:49 -0800)
setup.py

index 04ccc080742e2edc9550b0d7d673ee1a72e65b4b..5cb69df2dafc8b8cd586e42b215ca19827d7a318 100644 (file)
--- a/setup.py
+++ b/setup.py
 
 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 = []