1. Guilherme Gondim
  2. django-diario

Commits

Guilherme Gondim  committed 85e175c

fixing a bug in setup.py

  • Participants
  • Parent commits 11747dd
  • Branches master

Comments (0)

Files changed (1)

File setup.py

View file
 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