Skip to content

Commit

Permalink
only use ez_setup if required setuptools distribution is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
nihlaeth committed Feb 17, 2017
1 parent 87ae575 commit 59b30ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Installation script for user_config."""
# pylint: disable=wrong-import-position
from pkg_resources import get_distribution
if get_distribution('setuptools>=24.2.1') is None:
from pkg_resources import get_distribution, VersionConflict
try:
get_distribution('setuptools>=24.2.1')
except VersionConflict:
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages, Command
Expand Down

0 comments on commit 59b30ef

Please sign in to comment.