Permalink
Browse files

Don't require ez_setup in setup.py

  • Loading branch information...
1 parent 57d67c5 commit c67e40af3b6f5bb1c7246ea68dd36e2fbd73ed4b @thobbs thobbs committed Sep 25, 2011
Showing with 11 additions and 3 deletions.
  1. +11 −3 setup.py
View
@@ -11,9 +11,17 @@
except:
has_subprocess = False
-from ez_setup import use_setuptools
-use_setuptools()
-from setuptools import setup
+try:
+ from ez_setup import use_setuptools
+ use_setuptools()
+except ImportError:
+ pass
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
from distutils.cmd import Command
__version_info__ = (1, 2, 0)

0 comments on commit c67e40a

Please sign in to comment.