1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Cleaning up the import testing around setuptools

This commit is contained in:
James Cammarata 2014-04-29 14:53:44 -05:00
parent 6879415f25
commit 8e66a6c811

View file

@ -8,15 +8,10 @@ sys.path.insert(0, os.path.abspath('lib'))
from ansible import __version__, __author__
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
print "Ansible now needs setuptools in order to build. " + \
"Install it using your package manager (usually python-setuptools) or via pip (pip install setuptools)."
sys.exit(1)
# find library modules
from ansible.constants import DEFAULT_MODULE_PATH