-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·34 lines (29 loc) · 969 Bytes
/
setup.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
#!/usr/bin/env python3
import glob
import os
import re
from DistUtilsExtra.command import *
from DistUtilsExtra.auto import setup
# 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)
# f = open("MsgidUrl/Version.py", "w")
# f.write("VERSION=\"%s\"\n" % version)
# f.close()
#GETTEXT_NAME="apturl"
#I18NFILES = []
#for filepath in glob.glob("po/mo/*/LC_MESSAGES/*.mo"):
# lang = filepath[len("po/mo/"):]
# targetpath = os.path.dirname(os.path.join("share/locale",lang))
# I18NFILES.append((targetpath, [filepath]))
setup(name='message-id-url',
version=version,
scripts=['open-msgid'],
data_files=[('/etc/firefox/pref/', ["data/midurl.js"]),
('share/kde4/services/', ["data/mid.protocol"]),
],
)