This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·52 lines (47 loc) · 1.66 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
#!/usr/bin/env python
#
# Setup prog for cacheschedconfig
#
#
release_version='1.3.11'
import os
import stat
import glob
from setuptools import setup
# setup for distutils
setup(
name="panda-cacheschedconfig",
version=release_version,
description='panda-cacheschedconfig package',
long_description='''This package contains cacheschedconfig''',
license='GPL',
author='Panda Team',
author_email='[email protected]',
maintainer='Panda Team',
maintainer_email='[email protected]',
url='https://twiki.cern.ch/twiki/bin/view/Atlas/PanDA',
packages=['cacheschedconfig'],
data_files=[
# crontab file
('/etc/cron.d', ['cron/cacheschedconfig',
'cron/cachepilot',
]
),
# Utility wrapper script and main script
('/opt/cacheschedconfig/bin', ['bin/cacheSC.sh',
'bin/cacheSchedConfig.py',
'bin/cachePilots.sh',
]
),
('/opt/cacheschedconfig/etc/sysconfig', ['etc/cacheschedconfig-sysconfig',
'etc/cachepilot-sysconfig',
]
),
]
)
for f in glob.glob(os.path.join('/opt/cacheschedconfig/bin','*.sh')):
st = os.stat(f)
try:
os.chmod(f, st.st_mode|stat.S_IEXEC|stat.S_IXUSR|stat.S_IXGRP|stat.S_IXOTH)
except Exception:
pass