Merge branch 'feature/multi-version-import' of https://github.com/abadger/ansible into abadger-feature/multi-version-import

pull/7048/merge
James Cammarata 11 years ago
commit 6879415f25

@ -18,6 +18,9 @@
####################################################### #######################################################
__requires__ = ['ansible']
import pkg_resources
import sys import sys
import os import os
import stat import stat

@ -20,6 +20,9 @@
# example playbook to bootstrap this script in the examples/ dir which # example playbook to bootstrap this script in the examples/ dir which
# installs ansible and sets it up to run on cron. # installs ansible and sets it up to run on cron.
__requires__ = ['ansible']
import pkg_resources
import os import os
import sys import sys
import traceback import traceback

@ -25,6 +25,12 @@ Requires: python26-paramiko
Requires: python26-jinja2 Requires: python26-jinja2
Requires: python26-keyczar Requires: python26-keyczar
Requires: python26-httplib2 Requires: python26-httplib2
Requires: python26-setuptools
%endif
# RHEL == 6
%if 0%{?rhel} == 6
Requires: python-crypto2.6
%endif %endif
# RHEL > 5 # RHEL > 5
@ -35,6 +41,7 @@ Requires: python-paramiko
Requires: python-jinja2 Requires: python-jinja2
Requires: python-keyczar Requires: python-keyczar
Requires: python-httplib2 Requires: python-httplib2
Requires: python-setuptools
%endif %endif
# FEDORA > 17 # FEDORA > 17
@ -45,6 +52,7 @@ Requires: python-paramiko
Requires: python-jinja2 Requires: python-jinja2
Requires: python-keyczar Requires: python-keyczar
Requires: python-httplib2 Requires: python-httplib2
Requires: python-setuptools
%endif %endif
# SuSE/openSuSE # SuSE/openSuSE
@ -56,6 +64,7 @@ Requires: python-jinja2
Requires: python-keyczar Requires: python-keyczar
Requires: python-yaml Requires: python-yaml
Requires: python-httplib2 Requires: python-httplib2
Requires: python-setuptools
%endif %endif
Requires: sshpass Requires: sshpass

@ -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__
from distutils.core 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 # find library modules
from ansible.constants import DEFAULT_MODULE_PATH from ansible.constants import DEFAULT_MODULE_PATH
@ -29,7 +39,7 @@ setup(name='ansible',
author_email='michael@ansible.com', author_email='michael@ansible.com',
url='http://ansible.com/', url='http://ansible.com/',
license='GPLv3', license='GPLv3',
install_requires=['paramiko', 'jinja2', "PyYAML"], install_requires=['paramiko', 'jinja2', "PyYAML", 'setuptools', 'pycrypto >= 2.6'],
package_dir={ 'ansible': 'lib/ansible' }, package_dir={ 'ansible': 'lib/ansible' },
packages=[ packages=[
'ansible', 'ansible',

Loading…
Cancel
Save