-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup.py
executable file
·60 lines (52 loc) · 2 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
#!/usr/bin/env python
import setuptools
from distutils.core import setup, Extension
from distutils.util import get_platform
import os
festival_include = os.environ.get("FESTIVAL_INCLUDE", '/usr/include/festival')
speech_tools_include = os.environ.get("SPECCH_INCLUDE", '/usr/include/speech_tools')
festival_lib = os.environ.get("FESTIVAL_LIB", '/usr/lib')
festival_classifiers = [
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Topic :: Multimedia :: Sound/Audio :: Sound Synthesis",
"Topic :: Multimedia :: Sound/Audio :: Speech"
]
long_description = """A Python wrapper around the Festival Speech Synthesis System:
http://www.cstr.ed.ac.uk/projects/festival/
pyfestival creates a C module built on top of the festival source code, making it a self-contained Python library
(there is no need to run festival-server alongside).
pyfestival supports (and is tested on) Python 2.7+ including Python 3
"""
libraries = ['Festival', 'estools', 'estbase', 'eststring', 'ncurses', 'gomp']
if get_platform().startswith('macosx-'):
macos_frameworks = ['CoreAudio', 'AudioToolbox', 'Carbon']
else:
macos_frameworks = []
setup(
name='pyfestival',
description='Python Festival module',
long_description=long_description,
url="https://github.com/techiaith/pyfestival",
author="Patrick Robertson",
author_email="[email protected]",
license="BSD",
py_modules=['festival'],
ext_modules=[
Extension(
'_festival',
['_festival.cpp'],
include_dirs=[festival_include, speech_tools_include],
library_dirs=[festival_lib],
libraries=libraries,
extra_link_args=[x for name in macos_frameworks for x in ('-framework', name)],
),
],
platforms=["*nix"],
bugtrack_url="https://github.com/techiaith/pyfestival/issues",
version="0.6",
)