-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (35 loc) · 978 Bytes
/
setup.py
File metadata and controls
41 lines (35 loc) · 978 Bytes
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
import sys
import os
from cx_Freeze import setup, Executable
# Get the directory of this script
script_dir = os.path.dirname(os.path.abspath(__file__))
# Include additional files
include_files = [
'config.json',
'agentlogo.ico',
'hosts.txt'
]
# Dependencies are automatically detected, but it might need fine tuning.
build_options = {
'packages': ['requests', 'psutil', 'winreg', 'concurrent.futures', 'logging.handlers'],
'excludes': [],
'include_files': include_files,
'include_msvcrt': True,
}
# GUI applications require a different base on Windows
base = 'Win32GUI' if sys.platform == 'win32' else None
executables = [
Executable(
'agent.py',
base=base,
target_name='InfraAgent.exe',
icon='agentlogo.ico'
)
]
setup(
name='InfrastructureAgent',
version='1.0',
description='Infrastructure Agent for System Monitoring',
options={'build_exe': build_options},
executables=executables
)