-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
92 lines (86 loc) · 3.39 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env python
from setuptools import setup, find_packages
from setuptools.command.build_ext import build_ext
import sys, os
from glob import glob
from openhrivoice.__init__ import __version__
cmd_classes = {}
try:
from DistUtilsExtra.command import *
cmd_classes.update({"build": build_extra.build_extra,
"build_i18n" : build_i18n.build_i18n})
except ImportError:
pass
try:
import py2exe
sys.path.append("openhrivoice")
except ImportError:
pass
data_files = []
if sys.platform == "win32":
# py2exe options
extra = {
"console": [
"openhrivoice/JuliusRTC.py",
"openhrivoice/srgstopls.py",
"openhrivoice/srgstojulius.py",
"openhrivoice/validatesrgs.py",
"openhrivoice/bundlexinclude.py",
"openhrivoice/plstosinglewordgrammar.py",
"openhrivoice/OpenJTalkRTC.py",
"openhrivoice/FestivalRTC.py",
"openhrivoice/CombineResultsRTC.py",
"openhrivoice/XSLTRTC.py",
"openhrivoice/WavePlayerRTC.py",
"openhrivoice/srgseditor.py",
],
"options": {
"py2exe": {
"includes": ["xml.etree.ElementTree", "lxml._elementpath", "OpenRTM_aist", "RTC",
"cairo", "pango", "pangocairo",
"atk", "gobject", "gio", "glib", "gtk", "gtksourceview2"],
"dll_excludes": ["USP10.dll", "NSI.dll", "MSIMG32.dll", "DNSAPI.dll", "ierutil.dll", "powrprof.dll", "msimg32.dll", "mpr.dll", "urlmon.dll", "dnsapi.dll"],
}
}
}
else:
extra = {}
setup(name='openhrivoice',
cmdclass=cmd_classes,
version=__version__,
description="Voice components for OpenRTM (part of OpenHRI softwares)",
long_description="""Voice components for OpenRTM (part of OpenHRI softwares).""",
classifiers=[],
keywords='',
author='Yosuke Matsusaka',
author_email='[email protected]',
url='http://openhri.net/',
license='EPL',
packages=find_packages(exclude=['ez_setup', 'doc', 'examples', 'tests']),
include_package_data=True,
package_data={'openhrivoice': ['*.dfa', '*.dict', '*.xsd']},
data_files=data_files,
zip_safe=False,
install_requires=[
# -*- Extra requirements: -*-
],
entry_points="""
[console_scripts]
openjtalkrtc = openhrivoice.OpenJTalkRTC:main
juliusrtc = openhrivoice.JuliusRTC:main
srgstopls = openhrivoice.srgstopls:main
srgstojulius = openhrivoice.srgstojulius:main
validatesrgs = openhrivoice.validatesrgs:main
bundlexinclude = openhrivoice.bundlexinclude:main
plstosinglewordgrammar = openhrivoice.plstosinglewordgrammar:main
juliustographviz = openhrivoice.juliustographviz:main
maryrtc = openhrivoice.MARYRTC:main
festivalrtc = openhrivoice.FestivalRTC:main
combineresultsrtc = openhrivoice.CombineResultsRTC:main
xsltrtc = openhrivoice.XSLTRTC:main
waveplayerrtc = openhrivoice.WavePlayerRTC:main
openhrivoicemanager = openhrivoice.OpenHRIVoiceManager:main
srgseditor = openhrivoice.srgseditor:main
""",
**extra
)