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

6 7
bob_packages = ['bob.core', 'bob.sp']

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

12 13 14
from bob.extension.utils import load_requirements
build_requires = load_requirements()

15
version = open('version.txt').read().rstrip()
André Anjos's avatar
André Anjos committed
16 17 18

setup(

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

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

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

33 34
    setup_requires = build_requires,
    install_requires = build_requires,
André Anjos's avatar
André Anjos committed
35 36

    ext_modules = [
André Anjos's avatar
André Anjos committed
37
      Extension("bob.ap.version",
38
        [
André Anjos's avatar
André Anjos committed
39
          "bob/ap/version.cpp",
40
        ],
41
        version = version,
42
        bob_packages = bob_packages,
43 44 45
      ),

      Library("bob.ap.bob_ap",
André Anjos's avatar
André Anjos committed
46
        [
47 48 49 50
          "bob/ap/cpp/Energy.cpp",
          "bob/ap/cpp/FrameExtractor.cpp",
          "bob/ap/cpp/Spectrogram.cpp",
          "bob/ap/cpp/Ceps.cpp",
51 52
        ],
        version = version,
53
        bob_packages = bob_packages,
54
      ),
55

56 57
      Extension("bob.ap._library",
        [
André Anjos's avatar
André Anjos committed
58 59 60 61 62
          "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
63 64
          ],
        version = version,
65
        bob_packages = bob_packages,
66 67 68 69 70 71
      ),
    ],

    cmdclass = {
      'build_ext': build_ext
    },
André Anjos's avatar
André Anjos committed
72 73

    classifiers = [
74 75
      'Framework :: Bob',
      'Development Status :: 4 - Beta',
André Anjos's avatar
André Anjos committed
76 77 78 79 80 81
      'Intended Audience :: Developers',
      'License :: OSI Approved :: BSD License',
      'Natural Language :: English',
      'Programming Language :: Python',
      'Programming Language :: Python :: 3',
      'Topic :: Software Development :: Libraries :: Python Modules',
82
    ],
André Anjos's avatar
André Anjos committed
83

84
  )