Commits

Mike Fletcher committed f90c8e4 Draft

Add support for using setuptools/distribute if it is available (allow python setup.py develop in a virtualenv)

Comments (0)

Files changed (1)

 import os.path
 
 import distutils.errors
-from distutils.core import setup
-from distutils.extension import Extension
+try:
+    from setuptools import setup, Extension
+except ImportError:
+    from distutils.core import setup
+    from distutils.extension import Extension
 from distutils.log import warn
 
 try: