-
Notifications
You must be signed in to change notification settings - Fork 58
/
setup.py
executable file
·74 lines (69 loc) · 2.5 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python
from setuptools import setup
from glob import glob
import sys
version_file = 'src/lib/Bcfg2/version.py'
try:
# python 2
execfile(version_file)
except NameError:
# py3k
exec(compile(open(version_file).read(), version_file, 'exec'))
inst_reqs = [
'lockfile',
'lxml',
'python-daemon',
'argparse'
]
# Use the backported ssl module on < python2.6
if sys.version_info[:2] < (2, 6):
inst_reqs.append('ssl')
setup(name="Bcfg2",
version=__version__, # Defined in src/lib/Bcfg2/version.py
description="Bcfg2 Server",
author="Narayan Desai",
author_email="[email protected]",
# nosetests
test_suite='nose.collector',
packages=["Bcfg2",
"Bcfg2.Options",
"Bcfg2.Client",
"Bcfg2.Client.Tools",
"Bcfg2.Client.Tools.POSIX",
"Bcfg2.Reporting",
"Bcfg2.Reporting.Storage",
"Bcfg2.Reporting.Transport",
"Bcfg2.Reporting.migrations",
"Bcfg2.Reporting.templatetags",
'Bcfg2.Server',
"Bcfg2.Server.FileMonitor",
"Bcfg2.Server.Lint",
"Bcfg2.Server.migrations",
"Bcfg2.Server.Plugin",
"Bcfg2.Server.Plugins",
"Bcfg2.Server.Plugins.Packages",
"Bcfg2.Server.Plugins.Cfg",
"Bcfg2.Server.Reports",
"Bcfg2.Server.Reports.reports",
],
install_requires=inst_reqs,
tests_require=['mock', 'nose'],
package_dir={'': 'src/lib', },
package_data={'Bcfg2.Reporting': ['templates/*.html',
'templates/*/*.html',
'templates/*/*.inc']},
scripts=glob('src/sbin/*'),
data_files=[('share/bcfg2/schemas',
glob('schemas/*.xsd')),
('share/bcfg2/xsl-transforms',
glob('reports/xsl-transforms/*.xsl')),
('share/bcfg2/xsl-transforms/xsl-transform-includes',
glob('reports/xsl-transforms/xsl-transform-includes/*.xsl')),
('share/bcfg2', glob('reports/reports.wsgi')),
('share/man/man1', glob("man/bcfg2.1")),
('share/man/man5', glob("man/*.5")),
('share/man/man8', glob("man/*.8")),
('share/bcfg2/site_media',
glob('reports/site_media/*')),
]
)