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
|
#!/usr/bin/env python
import glob
from distutils.core import setup
from subprocess import check_output
from DistUtilsExtra.command import (
build_extra, build_i18n)
for line in check_output('dpkg-parsechangelog --format rfc822'.split(),
universal_newlines=True).splitlines():
header, colon, value = line.lower().partition(':')
if header == 'version':
version = value.strip()
break
else:
raise RuntimeError('No version found in debian/changelog')
setup(name='ubuntu-release-upgrader',
version=version,
packages=[
'DistUpgrade',
],
scripts=[
"do-partial-upgrade",
"do-release-upgrade",
"kubuntu-devel-release-upgrade",
"check-new-release-gtk",
],
data_files=[
('share/ubuntu-release-upgrader/gtkbuilder',
glob.glob("data/gtkbuilder/*.ui")
),
('share/ubuntu-release-upgrader/',
glob.glob("data/*.cfg")+
glob.glob("DistUpgrade/*.ui")
),
('share/man/man8',
glob.glob('data/*.8')
),
('../etc/update-manager/', # intentionally use old name
['data/release-upgrades', 'data/meta-release']),
],
cmdclass = { "build" : build_extra.build_extra,
"build_i18n" : build_i18n.build_i18n }
)
|