-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
36 lines (33 loc) · 1.23 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
#!/usr/bin/env python
import sys
sys.path = ['src'] + sys.path
import glob
import os
from distutils.core import setup
from SeriesFinale.lib import constants
def get_locale_files():
files = glob.glob('locale/*/*/*.mo')
file_list = []
for file in files:
destination_file_name = os.path.join(constants.DEFAULT_SYSTEM_APP_DIR, file)
file_list.append((os.path.dirname(destination_file_name), [file]))
return file_list
setup(name = constants.SF_NAME.lower(),
version = constants.SF_VERSION,
description = constants.SF_DESCRIPTION,
author = 'Joaquim Rocha',
author_email = '[email protected]',
url = constants.SF_URL,
license = 'GPL v3',
packages = ['SeriesFinale', 'SeriesFinale.lib',
'jsonpickle'],
package_dir = {'': 'src'},
scripts = ['seriesfinale'],
data_files = [(constants.ICON_FOLDER, ['data/seriesfinale.png']
),
('share/applications/hildon', ['data/seriesfinale.desktop']
),
(constants.DEFAULT_SYSTEM_APP_DIR, ['data/placeholderimage.png',
'data/downloadingimage.png']),
] + get_locale_files()
)