Commits

Guilherme Gondim committed 76f684f

fixing a bug in setup.py

Comments (0)

Files changed (1)

 Django Diário setup.
 """
 
-from ez_setup import use_setuptools
-use_setuptools()
+try:
+    from setuptools import setup, find_packages
+except ImportError:
+    from ez_setup import use_setuptools
+    use_setuptools()
+    from setuptools import setup, find_packagesfrom ez_setup import use_setuptools
 
-from setuptools import setup, find_packages
 from diario import get_version