commit | 0dbe2753e2a664940cdd8c7ccd90baee7aca222e | [log] [tgz] |
---|---|---|
author | Jason R. Coombs <jaraco@jaraco.com> | Tue Aug 09 10:42:31 2011 -0400 |
committer | Jason R. Coombs <jaraco@jaraco.com> | Tue Aug 09 10:42:31 2011 -0400 |
tree | 1dbc150a17aa4001f3ce7f22b4ed82b9179f8352 | |
parent | 496fe6992d1756ce1665af6679ed8fbab528a080 [diff] [blame] |
Added support for setuptools (if present, but still fall back to distutils). Fixes issue #194
diff --git a/setup.py b/setup.py index b8ba01e..916136c 100755 --- a/setup.py +++ b/setup.py
@@ -1,4 +1,7 @@ -from distutils.core import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup import sys pkgdir = {'': 'python%s' % sys.version_info[0]}