-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
29 lines (24 loc) · 935 Bytes
/
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
from distutils.core import setup
import platform
NAME = 'argo-ams-consumer'
def get_ver():
try:
for line in open(NAME + '.spec'):
if "Version:" in line:
return line.split()[1]
except IOError:
print("Make sure that {} is in directory".format(NAME + '.spec'))
raise SystemExit(1)
setup(
name=NAME,
version=get_ver(),
author='SRCE',
author_email='[email protected]',
package_dir={'argo_ams_consumer': 'pymod/'},
packages=['argo_ams_consumer'],
url='https://github.com/ARGOeu/ams-consumer',
description='argo-ams-consumer fetchs metric result messages from Argo Messaging System',
data_files=[('/etc/argo-ams-consumer', ['config/ams-consumer.conf', 'config/metric_data.avsc']),
('/usr/bin/', ['bin/ams-consumerd']),
('/usr/lib/systemd/system/', ['init/[email protected]', 'init/ams-consumers.target'])]
)