-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
58 lines (53 loc) · 2.28 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# $HeadURL$
# $Id$
import os
from distutils.core import setup, Extension
# Create mo files:
if not os.path.exists("mo/"):
os.mkdir("mo/")
for lang in ('it', 'de', 'pl', 'es', 'fr', 'ru', 'hu', 'cs', 'pt_BR', 'zh_CN', 'nl', 'uk', 'he'):
pofile = "po/" + lang + ".po"
mofile = "mo/" + lang + "/mirage.mo"
if not os.path.exists("mo/" + lang + "/"):
os.mkdir("mo/" + lang + "/")
print "generating", mofile
os.system("msgfmt %s -o %s" % (pofile, mofile))
setup(name='Mirage',
version='1.0-svn',
description='A fast GTK+ image viewer',
author='Scott Horowitz',
author_email='[email protected]',
maintainer= 'Fredric Johansson',
maintainer_email='[email protected]',
url='http://mirageiv.berlios.de',
classifiers=[
'Environment :: X11 Applications',
'Intended Audience :: End Users/Desktop',
'License :: GNU General Public License (GPL)',
'Operating System :: Linux',
'Programming Language :: Python',
'Topic :: Multimedia :: Graphics :: Viewers'
],
py_modules = ['mirage'],
ext_modules = [Extension(name='imgfuncs', sources=['imgfuncs.c']),
Extension(name='xmouse', sources=['xmouse.c'], libraries=['X11']),
Extension(name='mirage_numacomp', sources=['mirage_numacomp.c'])],
scripts = ['mirage'],
data_files=[('share/mirage', ['README', 'COPYING', 'CHANGELOG', 'TODO', 'TRANSLATORS', 'stock_shuffle.png', 'stock_leave-fullscreen.png', 'stock_fullscreen.png', 'mirage_blank.png']),
('share/applications', ['mirage.desktop']),
('share/pixmaps', ['mirage.png']),
('share/locale/ru/LC_MESSAGES', ['mo/ru/mirage.mo']),
('share/locale/pl/LC_MESSAGES', ['mo/pl/mirage.mo']),
('share/locale/fr/LC_MESSAGES', ['mo/fr/mirage.mo']),
('share/locale/es/LC_MESSAGES', ['mo/es/mirage.mo']),
('share/locale/de/LC_MESSAGES', ['mo/de/mirage.mo']),
('share/locale/hu/LC_MESSAGES', ['mo/hu/mirage.mo']),
('share/locale/cs/LC_MESSAGES', ['mo/cs/mirage.mo']),
('share/locale/nl/LC_MESSAGES', ['mo/nl/mirage.mo']),
('share/locale/pt_BR/LC_MESSAGES', ['mo/pt_BR/mirage.mo']),
('share/locale/zh_CN/LC_MESSAGES', ['mo/zh_CN/mirage.mo']),
('share/locale/it/LC_MESSAGES', ['mo/it/mirage.mo']),
('share/locale/he/LC_MESSAGES', ['mo/he/mirage.mo']),
('share/locale/uk/LC_MESSAGES', ['mo/uk/mirage.mo'])],
)