"""
PyWorld is a Python wrapper for WORLD vocoder.

WORLD is free software for high-quality speech analysis, manipulation and
synthesis. It can estimate Fundamental frequency (F0), aperiodicity and
spectral envelope and also generate the speech like input speech with only
estimated parameters.
"""


from __future__ import with_statement, print_function, absolute_import

from setuptools import setup, find_packages, Extension
from distutils.version import LooseVersion

import os
from glob import glob
from os.path import join

from setuptools.command.build_ext import build_ext as _build_ext


DOCLINES = __doc__.split('\n')
_VERSION = '0.2.8'

class build_ext(_build_ext):
    def finalize_options(self):
        _build_ext.finalize_options(self)
        # Prevent numpy from thinking it is still in its setup process:
        __builtins__.__NUMPY_SETUP__ = False
        import numpy
        self.include_dirs.append(numpy.get_include())

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],
        sources=[join("pyworld", "pyworld.pyx")] + world_sources,
        language="c++")]

setup(
    name="pyworld",
    description=DOCLINES,
    ext_modules=ext_modules,
    cmdclass={'build_ext': build_ext},
    version='0.2.5a',
    packages=find_packages(),
    setup_requires=[
        'numpy',
    ],
    install_requires=[
        'numpy',
        'cython>=0.24.0',
    ],
    extras_require={
        'test': ['nose'],
        'sdist': ['numpy', 'cython'],
    },
    author="Pyworld Contributors",
    author_email="jeremycchsu@gmail.com",
    url="https://github.com/JeremyCCHsu/Python-Wrapper-for-World-Vocoder",
    description="a Python wrapper for the WORLD vocoder",
    keywords=['vocoder'],
    classifiers=[],
)

@@ -1,13 +1,11 @@
 %22%22%22
-%0D%0A
 PyWorld 
@@ -50,17 +50,43 @@
 %0D%0A%0D%0A
-WORLD
+PyWorld wrappers WORLD, which
  is 
+a 
 free
@@ -118,17 +118,18 @@
 y speech
- 
+%0D%0A
 analysis
@@ -146,18 +146,17 @@
 tion and
-%0D%0A
+ 
 synthesi
@@ -174,17 +174,17 @@
 stimate 
-F
+f
 undament
@@ -201,17 +201,18 @@
 cy (F0),
- 
+%0D%0A
 aperiodi
@@ -219,18 +219,17 @@
 city and
-%0D%0A
+ 
 spectral
@@ -284,17 +284,18 @@
 t speech
- 
+%0D%0A
 with onl
@@ -295,18 +295,17 @@
 ith only
-%0D%0A
+ 
 estimate
@@ -1349,16 +1349,63 @@
 LINES,%0D%0A
+    long_description='%5Cn'.join(DOCLINES%5B2:%5D),%0D%0A
     ext_
@@ -1900,67 +1900,8 @@
 %22,%0D%0A
-    description=%22a Python wrapper for the WORLD vocoder%22,%0D%0A
     

update long description