forked from paroj/teatime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·28 lines (22 loc) · 950 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
#!/usr/bin/env python3
from distutils.core import setup
from DistUtilsExtra.command import build_i18n, build_extra
#DEST="/opt/extras.ubuntu.com/teatime/"
DEST="share/teatime/"
class my_build_i18n(build_i18n.build_i18n):
def run(self):
build_i18n.build_i18n.run(self)
df = self.distribution.data_files
self.distribution.data_files = [(d.replace("share/locale/", DEST+"locale/"), s) for d, s in df]
setup(
cmdclass = {"build": build_extra.build_extra,
"build_i18n": my_build_i18n},
name = "teatime",
version = "18.03",
description = "A simple egg timer application for the Unity Desktop",
author = "Pavel Rojtberg",
author_email = "[email protected]",
url = "http://www.rojtberg.net/",
license = "GNU GPL v3",
data_files = [("share/applications/", ["teatime.desktop"]),
(DEST, ["window.ui", "teatime.py"])])