setup.py 1.96 KB
Newer Older
André Anjos's avatar
André Anjos committed
1 2 3 4 5 6
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Thu 30 Jan 08:45:49 2014 CET

from setuptools import setup, find_packages, dist
André Anjos's avatar
André Anjos committed
7
dist.Distribution(dict(setup_requires=['bob.blitz', 'bob.core']))
André Anjos's avatar
André Anjos committed
8
from bob.blitz.extension import Extension
André Anjos's avatar
André Anjos committed
9 10 11
import bob.core

include_dirs = [bob.core.get_include()]
André Anjos's avatar
André Anjos committed
12

13
packages = ['bob-core >= 1.2.2', 'bob-sp >= 1.2.2']
André Anjos's avatar
André Anjos committed
14 15 16 17
version = '2.0.0a0'

setup(

André Anjos's avatar
André Anjos committed
18
    name='bob.ap',
André Anjos's avatar
André Anjos committed
19 20
    version=version,
    description='Bindings for Bob\'s audio processing utilities',
André Anjos's avatar
André Anjos committed
21
    url='http://github.com/bioidiap/bob.ap',
André Anjos's avatar
André Anjos committed
22 23 24 25 26 27 28 29
    license='BSD',
    author='Andre Anjos',
    author_email='andre.anjos@idiap.ch',

    long_description=open('README.rst').read(),

    packages=find_packages(),
    include_package_data=True,
30
    zip_safe=False,
André Anjos's avatar
André Anjos committed
31 32 33

    install_requires=[
      'setuptools',
André Anjos's avatar
André Anjos committed
34
      'bob.blitz',
André Anjos's avatar
André Anjos committed
35
      'bob.core',
André Anjos's avatar
André Anjos committed
36
      'bob.sp', # for testing
37
      'scipy', # for testing
André Anjos's avatar
André Anjos committed
38 39
    ],

40
    namespace_packages=[
André Anjos's avatar
André Anjos committed
41
      "bob",
André Anjos's avatar
André Anjos committed
42 43 44
      ],

    ext_modules = [
André Anjos's avatar
André Anjos committed
45
      Extension("bob.ap.version",
46
        [
André Anjos's avatar
André Anjos committed
47
          "bob/ap/version.cpp",
48 49 50 51
          ],
        packages = packages,
        version = version,
        ),
André Anjos's avatar
André Anjos committed
52
      Extension("bob.ap._library",
André Anjos's avatar
André Anjos committed
53
        [
54 55 56 57 58
          "bob/ap/cpp/Energy.cpp",
          "bob/ap/cpp/FrameExtractor.cpp",
          "bob/ap/cpp/Spectrogram.cpp",
          "bob/ap/cpp/Ceps.cpp",

André Anjos's avatar
André Anjos committed
59 60 61 62 63
          "bob/ap/energy.cpp",
          "bob/ap/frame_extractor.cpp",
          "bob/ap/spectrogram.cpp",
          "bob/ap/ceps.cpp",
          "bob/ap/main.cpp",
André Anjos's avatar
André Anjos committed
64
          ],
André Anjos's avatar
André Anjos committed
65
        include_dirs = include_dirs,
André Anjos's avatar
André Anjos committed
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
        packages = packages,
        version = version,
        ),
      ],

    classifiers = [
      'Development Status :: 3 - Alpha',
      'Intended Audience :: Developers',
      'License :: OSI Approved :: BSD License',
      'Natural Language :: English',
      'Programming Language :: Python',
      'Programming Language :: Python :: 3',
      'Topic :: Software Development :: Libraries :: Python Modules',
      ],

    )