-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup_win32.py
57 lines (53 loc) · 1.53 KB
/
setup_win32.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
import mamonsu
from setuptools import find_packages, setup
import py2exe
class Target:
def __init__(self, **kw):
self.__dict__.update(kw)
self.version = mamonsu.__version__
self.company_name = 'Postgres Professional'
setup(
name='mamonsu',
version=mamonsu.__version__,
packages=find_packages(),
description=mamonsu.__description__,
classifiers=mamonsu.__classifiers__,
keywords=mamonsu.__keywords__,
author=mamonsu.__author__,
author_email=mamonsu.__author_email__,
url=mamonsu.__url__,
license=mamonsu.__licence__,
service=[
Target(
name='service',
description='monitoring agent',
modules=['service_win32'],
cmdline_style='pywin32'
)
],
console=[{'script': 'mamonsu.py', 'dest_base': 'mamonsu'}],
options={
'py2exe': {
'packages': [
'mamonsu',
'mamonsu.plugins',
'mamonsu.plugins.pgsql',
'mamonsu.plugins.system.windows',
'mamonsu.tools.agent',
'mamonsu.tools.bootstrap',
'mamonsu.tools.report',
'mamonsu.tools.sysinfo',
'mamonsu.tools.tune',
'mamonsu.tools.zabbix_cli',
],
'bundle_files': 1,
'dist_dir': 'dist',
'xref': False,
'skip_archive': False,
'ascii': False,
'compressed': 2,
'optimize': 2
},
},
zipfile=None
)