#! /usr/bin/env python
# Last Change: Tue Sep 23 04:00 PM 2008 J

# Copyright (C) 2008 Cournapeau David <cournape@gmail.com>

descr   = """Talkbox, to make your numpy environment speech aware !

Talkbox is set of python modules for speech/signal processing. The goal of this
toolbox is to be a sandbox for features which may end up in scipy at some
point. The following features are planned before a 1.0 release:

    * Spectrum estimation related functions: both parametic (lpc, high
    resolution methods like music and co), and non-parametric (Welch,
    periodogram)
    * Fourier-like transforms (DCT, DST, MDCT, etc...)
    * Basic signal processing tasks such as resampling
    * Speech related functionalities: mfcc, mel spectrum, etc..
    * More as it comes

I want talkbox to be useful for both research and educational purpose. As such,
a requirement is to have a pure python implementation for everything - for
educational purpose and reproducibility - and optional C/C++/Lisp for speed -
because waiting for your mfcc computation one hour before ICASSP submission
deadline :)."""

import os
import sys

DISTNAME            = 'scikits.talkbox'
DESCRIPTION         = 'Talkbox, a set of python modules for speech/signal processing'
LONG_DESCRIPTION    = descr
MAINTAINER          = 'David Cournapeau',
MAINTAINER_EMAIL    = 'david@ar.media.kyoto-u.ac.jp',
URL                 = 'http://projects.scipy.org/scipy/scikits'
LICENSE             = 'MIT'
DOWNLOAD_URL        = URL

import setuptools
from numpy.distutils.core import setup

def configuration(parent_package='', top_path=None):
    if os.path.exists('MANIFEST'): os.remove('MANIFEST')

    from numpy.distutils.misc_util import Configuration
    config = Configuration(None, parent_package, top_path,
        maintainer  = MAINTAINER,
        maintainer_email = MAINTAINER_EMAIL,
        description = DESCRIPTION,
        license = LICENSE,
        url = URL,
        download_url = DOWNLOAD_URL,
        long_description = LONG_DESCRIPTION)

    #config.set_options(
    #            ignore_setup_xxx_py=True,
    #            assume_default_configuration=True,
    #            delegate_options_to_subpackages=True,
    #            quiet=True,
    #)

    config.add_subpackage('scikits')
    config.add_subpackage(DISTNAME)
    #config.add_data_files('scikits/__init__.py')

    return config

if __name__ == "__main__":
    setup(configuration = configuration,
        name = DISTNAME,
        install_requires = 'numpy',
        namespace_packages = ['scikits'],
        packages = setuptools.find_packages(),
        version = '0.2',
        include_package_data = True,
        #test_suite="tester", # for python setup.py test
        zip_safe = True, # the package can run out of an .egg file
        classifiers =
            [ 'Development Status :: 1 - Planning',
              'Environment :: Console',
              'Intended Audience :: Developers',
              'Intended Audience :: Science/Research',
              'License :: OSI Approved :: BSD License',
              'Topic :: Scientific/Engineering'],
    )

@@ -1478,16 +1478,44 @@
    = URL
+%0AVERSION             = %220.2%22
 %0A%0Aimport
@@ -1616,16 +1616,39 @@
 ath=None
+, package_name=DISTNAME
 ):%0A    i
@@ -1827,248 +1827,47 @@
     
-maintainer  = MAINTAINER,%0A        maintainer_email = MAINTAINER_EMAIL,%0A        description = DESCRIPTION,%0A        license = LICENSE,%0A        url = URL,%0A        download_url = DOWNLOAD_URL,%0A        long_description = LONG_DESCRIPTION
+namespace_packages = %5B'scikits'%5D
 )%0A%0A    
-#
 conf
@@ -1882,25 +1882,24 @@
 ptions(%0A    
-#
             
@@ -1920,33 +1920,32 @@
 xx_py=True,%0A    
-#
             assu
@@ -1971,33 +1971,32 @@
 ation=True,%0A    
-#
             dele
@@ -2033,17 +2033,16 @@
 ue,%0A    
-#
         
@@ -2061,17 +2061,16 @@
 ue,%0A    
-#
 )%0A%0A    c
@@ -2141,17 +2141,16 @@
 ME)%0A    
-#
 config.a
@@ -2278,33 +2278,8 @@
 on,%0A
-        name = DISTNAME,%0A
     
@@ -2314,50 +2314,8 @@
 y',%0A
-        namespace_packages = %5B'scikits'%5D,%0A
     
@@ -2361,33 +2361,8 @@
 (),%0A
-        version = '0.2',%0A
     
@@ -2390,24 +2390,183 @@
 ata = True,%0A
+        name = DISTNAME,%0A        version = VERSION,%0A        description = DESCRIPTION,%0A        long_description = LONG_DESCRIPTION,%0A        license = LICENSE,%0A
         #tes

Fix setup.py to avoid spurious warnings.