summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 217c6d23..a49ec9d6 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,10 @@
# file, which you should have received as part of this distribution.
import sys
-from distutils.core import setup, Command
+try:
+ from setuptools import setup, Command
+except ImportError:
+ from distutils.core import setup, Command
# from ez_setup import use_setuptools
from testall import TestCommand