forked from lusum/gSpeech
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
57 lines (50 loc) · 1.46 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
#!/usr/bin/env python3
import glob
import os
from setuptools import setup
from speech import __version__
I18N_FILES = []
for file_path in glob.glob('locale/*/LC_MESSAGES/*.mo'):
lang = file_path[len('locale/'):]
target_path = os.path.dirname(os.path.join('share/locale', lang))
print(target_path)
I18N_FILES.append((target_path, [file_path]))
DICT_FILES = []
for file_path in glob.glob('dict/*/*/*'):
lang = file_path[len('dict/'):]
target_path = os.path.dirname(os.path.join(
'share/gspeech/dict',
lang
))
DICT_FILES.append((target_path, [file_path]))
ICONS_FILES = []
for file_path in glob.glob('icons/*'):
ICONS_FILES.append((
'share/icons/hicolor/scalable/apps',
[file_path]
))
setup(
name='gspeech',
version=__version__,
description=("""
A minimal GUI for the Text To Speech 'Svox Pico'.
Read clipboard or selected text in different languages
and manage it : pause, stop, replay.";
"""),
author='mothsart',
author_email='[email protected]',
url='https://github.com/mothsart/gSpeech',
packages=[
'speech',
'speech.widgets',
'speech.workers', 'speech.workers.fr_FR'
],
package_data={'speech': ['gspeech.conf']},
data_files=I18N_FILES + DICT_FILES + ICONS_FILES,
entry_points={
'console_scripts': [
'gspeech = speech.main:main',
'gspeech-cli = speech.cli:main'
]
}
)