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
68
69
70
71
72
73
74
75
76
77
78
79
|
#!/usr/bin/env python
from distutils.core import setup, Extension
import glob
import os
from DistUtilsExtra.command import *
disabled = []
def plugins():
return [os.path.join('Janitor/plugins', name)
for name in os.listdir('Janitor/plugins')
if name.endswith('_plugin.py') and name not in disabled]
def profiles():
profiles = []
# FIXME: ship with a small collection of profiles for now
#for d in os.listdir("AutoUpgradeTester/profile/"):
for d in ["server", "ubuntu", "kubuntu", "main-all",
"lts-server", "lts-ubuntu", "lts-kubuntu"]:
base="AutoUpgradeTester/profile/"
cfgs = [f for f in glob.glob("%s/%s/*" % (base,d)) if os.path.isfile(f)]
profiles.append(("share/auto-upgrade-tester/profiles/"+d,cfgs))
return profiles
setup(name='update-manager',
version='0.56',
ext_modules=[Extension('UpdateManager.fdsend',
['UpdateManager/fdsend/fdsend.c'])],
packages=[
'UpdateManager',
'UpdateManager.backend',
'UpdateManager.Core',
'UpdateManagerHildon',
'UpdateManagerText',
'DistUpgrade',
'computerjanitor',
'AutoUpgradeTester',
],
package_dir={
'': '.',
'computerjanitor': 'Janitor/computerjanitor',
},
scripts=[
'update-manager',
'ubuntu-support-status',
'update-manager-text',
"do-release-upgrade",
"kubuntu-devel-release-upgrade",
"update-manager-hildon",
"check-new-release-gtk",
"AutoUpgradeTester/auto-upgrade-tester",
],
data_files=[
('share/update-manager/glade',
glob.glob("data/glade/*.ui")+
glob.glob("DistUpgrade/*.ui")
),
('share/update-manager/',
glob.glob("DistUpgrade/*.cfg")+
glob.glob("UpdateManager/*.ui")
),
('share/man/man8',
glob.glob('data/*.8')
),
('../etc/update-manager/',
['data/release-upgrades',
'data/meta-release']),
('share/computerjanitor/plugins',
plugins()),
('share/auto-upgrade-tester/post_upgrade_tests',
glob.glob("AutoUpgradeTester/post_upgrade_tests/*")),
]+profiles(),
cmdclass = { "build" : build_extra.build_extra,
"build_i18n" : build_i18n.build_i18n,
"build_help" : build_help.build_help,
"build_icons" : build_icons.build_icons }
)
|