2011-02-27 21:31:57 +00:00
|
|
|
#!/usr/bin/python2
|
2011-02-27 22:17:45 +00:00
|
|
|
'''
|
|
|
|
The setup script for salt
|
|
|
|
'''
|
2011-04-03 22:25:17 +00:00
|
|
|
import os
|
2011-05-24 01:01:48 +00:00
|
|
|
import sys
|
2011-02-27 21:31:57 +00:00
|
|
|
from distutils.core import setup
|
2011-04-03 22:25:17 +00:00
|
|
|
from distutils.extension import Extension
|
2011-05-23 18:23:42 +00:00
|
|
|
from distutils.sysconfig import get_python_lib, PREFIX
|
2011-04-03 22:25:17 +00:00
|
|
|
|
2011-05-12 15:08:43 +00:00
|
|
|
NAME = 'salt'
|
2011-05-14 20:23:22 +00:00
|
|
|
VER = '0.8.7'
|
2011-05-12 15:08:43 +00:00
|
|
|
DESC = 'Portable, distrubuted, remote execution system'
|
|
|
|
|
2011-04-03 22:25:17 +00:00
|
|
|
mod_path = os.path.join(get_python_lib(), 'salt/modules/')
|
2011-05-23 18:23:42 +00:00
|
|
|
doc_path = os.path.join(PREFIX, 'share/doc/', NAME + '-' + VER)
|
2011-05-12 15:08:43 +00:00
|
|
|
example_path = os.path.join(doc_path, 'examples')
|
|
|
|
template_path = os.path.join(example_path, 'templates')
|
2011-05-24 01:01:48 +00:00
|
|
|
etc_path = os.path.join(os.path.dirname(os.path.normpath(sys.prefix)) + 'etc')
|
2011-02-27 21:31:57 +00:00
|
|
|
|
2011-05-12 15:08:43 +00:00
|
|
|
setup(name=NAME,
|
|
|
|
version=VER,
|
|
|
|
description=DESC,
|
2011-02-27 21:31:57 +00:00
|
|
|
author='Thomas S Hatch',
|
|
|
|
author_email='thatch45@gmail.com',
|
|
|
|
url='https://github.com/thatch45/salt',
|
2011-05-06 14:28:34 +00:00
|
|
|
classifiers = [
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Cython',
|
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Information Technology',
|
|
|
|
'Intended Audience :: System Administrators',
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
'Topic :: System :: Monitoring',
|
|
|
|
'Topic :: System :: Clustering',
|
|
|
|
'Topic :: System :: Distributed Computing',
|
|
|
|
],
|
2011-04-02 05:38:20 +00:00
|
|
|
packages=['salt',
|
|
|
|
'salt.modules',
|
2011-04-16 20:48:13 +00:00
|
|
|
'salt.cli',
|
|
|
|
'salt.returners',
|
2011-05-12 18:05:00 +00:00
|
|
|
'salt.renderers',
|
2011-04-29 22:07:53 +00:00
|
|
|
'salt.grains',
|
|
|
|
'salt.states',
|
2011-04-16 20:48:13 +00:00
|
|
|
],
|
2011-02-27 21:31:57 +00:00
|
|
|
scripts=['scripts/salt-master',
|
2011-03-09 17:52:22 +00:00
|
|
|
'scripts/salt-minion',
|
2011-05-12 15:08:43 +00:00
|
|
|
'scripts/salt-key',
|
2011-04-13 02:26:04 +00:00
|
|
|
'scripts/salt-cp',
|
2011-04-23 20:34:46 +00:00
|
|
|
'scripts/salt-call',
|
2011-03-09 17:52:22 +00:00
|
|
|
'scripts/salt'],
|
2011-05-24 01:01:48 +00:00
|
|
|
data_files=[(os.path.join(etc_path),
|
2011-03-03 17:57:11 +00:00
|
|
|
['conf/master',
|
|
|
|
'conf/minion',
|
2011-02-27 21:31:57 +00:00
|
|
|
]),
|
2011-04-02 05:22:19 +00:00
|
|
|
('share/man/man1',
|
2011-05-12 14:46:30 +00:00
|
|
|
['doc/man/salt-master.1',
|
2011-05-14 04:35:00 +00:00
|
|
|
'doc/man/salt-key.1',
|
2011-05-12 14:46:30 +00:00
|
|
|
'doc/man/salt.1',
|
2011-05-14 04:35:00 +00:00
|
|
|
'doc/man/salt-cp.1',
|
2011-05-12 14:46:30 +00:00
|
|
|
'doc/man/salt-minion.1',
|
2011-04-02 05:38:20 +00:00
|
|
|
]),
|
2011-04-02 05:22:19 +00:00
|
|
|
('share/man/man7',
|
2011-05-12 14:46:30 +00:00
|
|
|
['doc/man/salt.7',
|
2011-04-02 05:38:20 +00:00
|
|
|
]),
|
2011-04-03 22:25:17 +00:00
|
|
|
(mod_path,
|
|
|
|
['salt/modules/cytest.pyx',
|
2011-05-12 15:08:43 +00:00
|
|
|
]),
|
2011-05-14 20:23:22 +00:00
|
|
|
(doc_path,
|
|
|
|
['LICENCE'
|
|
|
|
]),
|
2011-05-12 15:08:43 +00:00
|
|
|
(template_path,
|
|
|
|
['doc/example/templates/yaml-jinja.yml',
|
2011-05-14 23:17:00 +00:00
|
|
|
'doc/example/templates/yaml-mako.yml',
|
2011-05-17 04:26:56 +00:00
|
|
|
'doc/example/templates/yaml.yml',
|
|
|
|
'doc/example/templates/json-jinja.json',
|
|
|
|
'doc/example/templates/json-mako.json',
|
|
|
|
'doc/example/templates/json.json',
|
2011-05-12 15:08:43 +00:00
|
|
|
]),
|
2011-02-27 21:31:57 +00:00
|
|
|
],
|
|
|
|
)
|