-
Notifications
You must be signed in to change notification settings - Fork 48
/
setup_client.py
67 lines (59 loc) · 1.53 KB
/
setup_client.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
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/python
import sys
from landscape import UPSTREAM_VERSION
NAME = "Landscape Client"
DESCRIPTION = "Landscape Client"
PACKAGES = [
"landscape.client",
"landscape.client.broker",
"landscape.client.manager",
"landscape.client.monitor",
"landscape.client.package",
"landscape.client.snap_http",
"landscape.client.upgraders",
"landscape.client.user",
]
MODULES = [
"landscape.client.accumulate",
"landscape.client.amp",
"landscape.client.configuration",
"landscape.client.deployment",
"landscape.client.diff",
"landscape.client.patch",
"landscape.client.reactor",
"landscape.client.service",
"landscape.client.snap_utils",
"landscape.client.sysvconfig",
"landscape.client.watchdog",
]
SCRIPTS = []
if sys.version_info[0] > 2:
SCRIPTS += [
"scripts/landscape-client",
"scripts/landscape-config",
"scripts/landscape-broker",
"scripts/landscape-manager",
"scripts/landscape-monitor",
"scripts/landscape-package-changer",
"scripts/landscape-package-reporter",
"scripts/landscape-release-upgrader",
]
# Dependencies
DEB_REQUIRES = [
"ca-certificates",
# python3-pycurl
]
REQUIRES = [
"pycurl",
f"landscape-lib={UPSTREAM_VERSION}",
f"landscape-sysinfo={UPSTREAM_VERSION}",
]
if __name__ == "__main__":
from setup import setup_landscape
setup_landscape(
name=NAME,
description=DESCRIPTION,
packages=PACKAGES,
modules=MODULES,
scripts=SCRIPTS,
)