Skip to content

Commit

Permalink
Prnt error message is unable to use setuptools when building
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Apr 2, 2014
1 parent 17f134c commit e622074
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@

sys.path.insert(0, os.path.abspath('lib'))
from ansible import __version__, __author__
from setuptools import setup
try:
from setuptools import setup
raise ImportError
except ImportError:
print('''
ansible now needs setuptools in order to build.
Some scripts now need setuptools installed in order to run.
''')
raise


# find library modules
from ansible.constants import DEFAULT_MODULE_PATH
Expand Down

0 comments on commit e622074

Please sign in to comment.