setup.py 2.06 KB
Newer Older
1
2
3
4
5
6
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Mon 16 Apr 08:18:08 2012 CEST

from setuptools import setup, find_packages, dist
7
dist.Distribution(dict(setup_requires=['xbob.blitz','xbob.extension']))
8
from xbob.blitz.extension import Extension
9
import xbob.extension
10
11
12
13
14
15

import os
package_dir = os.path.dirname(os.path.realpath(__file__))
package_dir = os.path.join(package_dir, 'xbob', 'math', 'include')
include_dirs = [package_dir]

16
packages = ['bob-math >= 1.2.2']
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version = '2.0.0a0'

setup(

    name='xbob.math',
    version=version,
    description='Bindings for bob.math',
    url='http://github.com/anjos/xbob.math',
    license='BSD',
    author='Andre Anjos',
    author_email='andre.anjos@idiap.ch',

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

    packages=find_packages(),
    include_package_data=True,

    install_requires=[
      'setuptools',
      'xbob.blitz',
37
38
      'xbob.extension',
      'numpydoc',
39
40
41
42
43
44
45
    ],

    namespace_packages=[
      "xbob",
      ],

    ext_modules = [
46
47
48
49
50
51
52
53
      Extension("xbob.math.version",
        [
          "xbob/math/version.cpp",
          ],
        packages = packages,
        version = version,
        include_dirs = include_dirs,
        ),
54
55
56
      Extension("xbob.math._library",
        [
          "xbob/math/histogram.cpp",
André Anjos's avatar
André Anjos committed
57
          "xbob/math/linsolve.cpp",
André Anjos's avatar
André Anjos committed
58
          "xbob/math/pavx.cpp",
André Anjos's avatar
André Anjos committed
59
          "xbob/math/norminv.cpp",
60
          "xbob/math/scatter.cpp",
61
          "xbob/math/lp_interior_point.cpp",
62
63
64
65
66
          "xbob/math/main.cpp",
          ],
        packages = packages,
        version = version,
        include_dirs = include_dirs,
67
68
69
#        define_macros = [('XBOB_SHORT_DOCSTRINGS',1)],
      ),
    ],
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

    entry_points={
      },

    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',
      ],

    )