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
|
#!/usr/bin/env python
from distutils.core import setup
from DistUtilsExtra.command import *
import glob
import os
import re
# look/set what version we have
changelog = "debian/changelog"
if os.path.exists(changelog):
head=open(changelog).readline()
match = re.compile(".*\((.*)\).*").match(head)
if match:
version = match.group(1)
setup( name='five-a-day',
version=version,
scripts=['5-a-day',
],
packages=['fiveaday',
'fiveadayapplet',
],
data_files=[ ('/usr/share/5-a-day-applet', ['data/5-a-day.svg', 'data/5-a-day-applet.glade']),
('/usr/lib/bonobo/servers', ['GNOME_PyFiveADayApplet.server']),
('/usr/lib/5-a-day-applet', ['5-a-day-applet']),
('/etc/bash_completion.d/', ['data/bash_completion/5-a-day']),
],
cmdclass = { "build" : build_extra.build_extra,
"build_i18n" : build_i18n.build_i18n }
)
|