-
Notifications
You must be signed in to change notification settings - Fork 122
/
setup.py
53 lines (44 loc) · 1.45 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
from __future__ import with_statement, print_function, absolute_import
from setuptools import setup, find_packages, Extension
from distutils.version import LooseVersion
import sys
from glob import glob
from os.path import join
import numpy
from setuptools.command.build_ext import build_ext
_VERSION = '0.3.4'
world_src_top = join("lib", "World", "src")
world_sources = glob(join(world_src_top, "*.cpp"))
ext_modules = [
Extension(
name="pyworld.pyworld",
include_dirs=[world_src_top, numpy.get_include()],
sources=[join("pyworld", "pyworld.pyx")] + world_sources,
language="c++")]
kwargs = {"encoding": "utf-8"} if int(sys.version[0]) > 2 else {}
setup(
name="pyworld",
description="PyWorld: a Python wrapper for WORLD vocoder",
long_description=open("README.md", "r", **kwargs).read(),
long_description_content_type="text/markdown",
ext_modules=ext_modules,
cmdclass={'build_ext': build_ext},
version=_VERSION,
packages=find_packages(),
setup_requires=[
'numpy',
],
install_requires=[
'numpy',
'cython>=0.24',
],
extras_require={
'test': ['nose'],
'sdist': ['numpy', 'cython>=0.24'],
},
author="Pyworld Contributors",
author_email="[email protected]",
url="https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder",
keywords=['vocoder'],
classifiers=[],
)