forked from heartshare/nginx-amplify-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (49 loc) · 1.43 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
# -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0, '%s/amplify' % os.getcwd())
from setuptools import setup, find_packages
from amplify.agent.common.util.host import is_deb, is_rpm, is_amazon
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__credits__ = ["Mike Belov", "Andrei Belov", "Ivan Poluyanov", "Oleg Mamontov", "Andrew Alexeev"]
__license__ = ""
__maintainer__ = "Mike Belov"
__email__ = "[email protected]"
data_files = [
('/etc/amplify-agent/', [
'etc/agent.conf.default',
]),
('/etc/logrotate.d/', ['etc/logrotate.d/amplify-agent'])
]
if is_rpm() or is_amazon():
data_files.append(
('/etc/init.d/', ['etc/chkconfig/amplify-agent'])
)
elif is_deb():
data_files.append(
('/etc/init.d/', ['etc/init.d/amplify-agent']),
)
setup(
name="nginx-amplify-agent",
version="0.36",
author="Mike Belov",
author_email="[email protected]",
description="NGINX Amplify Agent",
keywords="amplify agent nginx",
url="https:/amplify.nginx.com/",
packages=find_packages(exclude=[
"*.test", "*.test.*", "test.*", "test",
"tools", "tools.*", "packages", "packages.*"]),
package_data={'amplify': [
'gevent/*.so',
'psutil/*.so',
'*.so',
]},
data_files=data_files,
scripts=[
'nginx-amplify-agent.py'
],
entry_points={},
long_description='NGINX Amplify Agent',
)