mirror of https://github.com/coqui-ai/TTS.git
commit
55aa312e30
12
setup.py
12
setup.py
|
@ -7,7 +7,7 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages, Extension
|
||||||
import setuptools.command.develop
|
import setuptools.command.develop
|
||||||
import setuptools.command.build_py
|
import setuptools.command.build_py
|
||||||
|
|
||||||
|
@ -60,6 +60,13 @@ def find_pyx(path='.'):
|
||||||
return pyx_files
|
return pyx_files
|
||||||
|
|
||||||
|
|
||||||
|
def find_cython_extensions(path="."):
|
||||||
|
exts = cythonize(find_pyx(path), language_level=3)
|
||||||
|
for ext in exts:
|
||||||
|
ext.include_dirs = [numpy.get_include()]
|
||||||
|
return exts
|
||||||
|
|
||||||
|
|
||||||
class build_py(setuptools.command.build_py.build_py): # pylint: disable=too-many-ancestors
|
class build_py(setuptools.command.build_py.build_py): # pylint: disable=too-many-ancestors
|
||||||
def run(self):
|
def run(self):
|
||||||
self.create_version_file()
|
self.create_version_file()
|
||||||
|
@ -113,8 +120,7 @@ setup(
|
||||||
description='Text to Speech with Deep Learning',
|
description='Text to Speech with Deep Learning',
|
||||||
license='MPL-2.0',
|
license='MPL-2.0',
|
||||||
entry_points={'console_scripts': ['tts-server = TTS.server.server:main']},
|
entry_points={'console_scripts': ['tts-server = TTS.server.server:main']},
|
||||||
include_dirs=[numpy.get_include()],
|
ext_modules=find_cython_extensions(),
|
||||||
ext_modules=cythonize(find_pyx(), language_level=3),
|
|
||||||
packages=find_packages(include=['TTS*']),
|
packages=find_packages(include=['TTS*']),
|
||||||
project_urls={
|
project_urls={
|
||||||
'Documentation': 'https://github.com/mozilla/TTS/wiki',
|
'Documentation': 'https://github.com/mozilla/TTS/wiki',
|
||||||
|
|
Loading…
Reference in New Issue