mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 04:11:25 -07:00
Prnt error message is unable to use setuptools when building
This commit is contained in:
parent
17f134ca02
commit
e622074812
1 changed files with 11 additions and 1 deletions
10
setup.py
10
setup.py
|
@ -6,7 +6,17 @@ from glob import glob
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('lib'))
|
sys.path.insert(0, os.path.abspath('lib'))
|
||||||
from ansible import __version__, __author__
|
from ansible import __version__, __author__
|
||||||
|
try:
|
||||||
from setuptools import setup
|
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
|
# find library modules
|
||||||
from ansible.constants import DEFAULT_MODULE_PATH
|
from ansible.constants import DEFAULT_MODULE_PATH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue