Start off with the common salt install requires

This commit is contained in:
Pedro Algarvio 2014-06-18 00:45:05 +01:00
parent acf51004f8
commit da1f8bd4b7

View File

@ -446,15 +446,6 @@ VER = __version__ # pylint: disable=E0602
DESC = ('Portable, distributed, remote execution and ' DESC = ('Portable, distributed, remote execution and '
'configuration management system') 'configuration management system')
REQUIREMENTS = []
with open(SALT_REQS) as rfh:
for line in rfh.readlines():
if not line or line.startswith('#'):
continue
if IS_WINDOWS_PLATFORM and 'libcloud' in line:
continue
REQUIREMENTS.append(line.strip())
SETUP_KWARGS = {'name': NAME, SETUP_KWARGS = {'name': NAME,
'version': VER, 'version': VER,
'description': DESC, 'description': DESC,
@ -538,8 +529,9 @@ SETUP_KWARGS = {'name': NAME,
['doc/man/salt.7', ['doc/man/salt.7',
]), ]),
], ],
# Required for esky builds # Required for esky builds, ZeroMQ or RAET deps will be added
'install_requires': REQUIREMENTS, # at install time
'install_requires': _parse_requirements_file(SALT_REQS),
# The dynamic module loading in salt.modules makes this # The dynamic module loading in salt.modules makes this
# package zip unsafe. Required for esky builds # package zip unsafe. Required for esky builds
'zip_safe': False 'zip_safe': False
@ -548,8 +540,8 @@ SETUP_KWARGS = {'name': NAME,
if IS_WINDOWS_PLATFORM is False: if IS_WINDOWS_PLATFORM is False:
SETUP_KWARGS['cmdclass']['sdist'] = CloudSdist SETUP_KWARGS['cmdclass']['sdist'] = CloudSdist
SETUP_KWARGS['cmdclass']['install_lib'] = InstallLib SETUP_KWARGS['cmdclass']['install_lib'] = InstallLib
#SETUP_KWARGS['packages'].extend(['salt.cloud', # SETUP_KWARGS['packages'].extend(['salt.cloud',
# 'salt.cloud.clouds']) # 'salt.cloud.clouds'])
SETUP_KWARGS['package_data']['salt.cloud'] = ['deploy/*.sh'] SETUP_KWARGS['package_data']['salt.cloud'] = ['deploy/*.sh']
SETUP_KWARGS['data_files'][0][1].extend([ SETUP_KWARGS['data_files'][0][1].extend([
'doc/man/salt-master.1', 'doc/man/salt-master.1',