forked from ARGOeu/argo-connectors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (26 loc) · 1.22 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
from distutils.core import setup
import glob
NAME='argo-egi-connectors'
def get_ver():
try:
for line in open(NAME+'.spec'):
if "Version:" in line:
return line.split()[1]
except IOError:
print "Make sure that %s is in directory" % (NAME+'.spec')
raise SystemExit(1)
setup(name=NAME,
version=get_ver(),
author='SRCE',
author_email='[email protected], [email protected]',
description='Components generate input for ARGO Compute Engine',
url='http://argoeu.github.io/guides/sync/',
package_dir={'argo_egi_connectors': 'modules/'},
packages=['argo_egi_connectors'],
data_files=[('/etc/argo-egi-connectors', glob.glob('etc/*.conf')),
('/usr/libexec/argo-egi-connectors', ['bin/downtimes-gocdb-connector.py', \
'bin/poem-connector.py', \
'bin/topology-gocdb-connector.py', \
'bin/weights-vapor-connector.py']),
('/etc/argo-egi-connectors/schemas', glob.glob('etc/schemas/*.avsc')),
('/etc/cron.d', glob.glob('cronjobs/*'))])