|
1 |
| -from __future__ import with_statement, print_function, absolute_import |
2 |
| - |
3 |
| -from setuptools import setup, find_packages, Extension |
4 |
| -from distutils.version import LooseVersion |
5 |
| - |
6 |
| -import sys |
7 |
| -from glob import glob |
8 |
| -from os.path import join |
9 |
| -import numpy |
10 |
| - |
11 |
| -from setuptools.command.build_ext import build_ext |
12 |
| - |
13 |
| - |
14 |
| -_VERSION = '0.3.4' |
15 |
| - |
16 |
| - |
17 |
| -world_src_top = join("lib", "World", "src") |
18 |
| -world_sources = glob(join(world_src_top, "*.cpp")) |
19 |
| - |
20 |
| -ext_modules = [ |
21 |
| - Extension( |
22 |
| - name="pyworld.pyworld", |
23 |
| - include_dirs=[world_src_top, numpy.get_include()], |
24 |
| - sources=[join("pyworld", "pyworld.pyx")] + world_sources, |
25 |
| - language="c++")] |
26 |
| - |
27 |
| -kwargs = {"encoding": "utf-8"} if int(sys.version[0]) > 2 else {} |
28 |
| -setup( |
29 |
| - name="pyworld", |
30 |
| - description="PyWorld: a Python wrapper for WORLD vocoder", |
31 |
| - long_description=open("README.md", "r", **kwargs).read(), |
32 |
| - long_description_content_type="text/markdown", |
33 |
| - ext_modules=ext_modules, |
34 |
| - cmdclass={'build_ext': build_ext}, |
35 |
| - version=_VERSION, |
36 |
| - packages=find_packages(), |
37 |
| - setup_requires=[ |
38 |
| - 'numpy', |
39 |
| - ], |
40 |
| - install_requires=[ |
41 |
| - 'numpy', |
42 |
| - 'cython>=0.24', |
43 |
| - ], |
44 |
| - extras_require={ |
45 |
| - 'test': ['nose'], |
46 |
| - 'sdist': ['numpy', 'cython>=0.24'], |
47 |
| - }, |
48 |
| - author="Pyworld Contributors", |
49 |
| - |
50 |
| - url="https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder", |
51 |
| - keywords=['vocoder'], |
52 |
| - classifiers=[], |
53 |
| -) |
| 1 | +from __future__ import absolute_import, print_function, with_statement |
| 2 | + |
| 3 | +import sys |
| 4 | +from glob import glob |
| 5 | +from os.path import join |
| 6 | + |
| 7 | +import numpy |
| 8 | +from setuptools import Extension, find_packages, setup |
| 9 | +from setuptools.command.build_ext import build_ext |
| 10 | + |
| 11 | + |
| 12 | +_VERSION = '0.3.4' |
| 13 | + |
| 14 | + |
| 15 | +world_src_top = join("lib", "World", "src") |
| 16 | +world_sources = glob(join(world_src_top, "*.cpp")) |
| 17 | + |
| 18 | +ext_modules = [ |
| 19 | + Extension( |
| 20 | + name="pyworld.pyworld", |
| 21 | + include_dirs=[world_src_top, numpy.get_include()], |
| 22 | + sources=[join("pyworld", "pyworld.pyx")] + world_sources, |
| 23 | + language="c++")] |
| 24 | + |
| 25 | +kwargs = {"encoding": "utf-8"} if int(sys.version[0]) > 2 else {} |
| 26 | +setup( |
| 27 | + name="pyworld", |
| 28 | + description="PyWorld: a Python wrapper for WORLD vocoder", |
| 29 | + long_description=open("README.md", "r", **kwargs).read(), |
| 30 | + long_description_content_type="text/markdown", |
| 31 | + ext_modules=ext_modules, |
| 32 | + cmdclass={'build_ext': build_ext}, |
| 33 | + version=_VERSION, |
| 34 | + packages=find_packages(), |
| 35 | + install_requires=['numpy'], |
| 36 | + extras_require={ |
| 37 | + 'test': ['nose'], |
| 38 | + 'sdist': ['numpy', 'cython>=0.24'], |
| 39 | + }, |
| 40 | + author="Pyworld Contributors", |
| 41 | + |
| 42 | + url="https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder", |
| 43 | + keywords=['vocoder'], |
| 44 | + classifiers=[], |
| 45 | +) |
0 commit comments