setup.py 1.93 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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
dist.Distribution(dict(setup_requires=['xbob.blitz']))
from xbob.blitz.extension import Extension

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]

15
packages = ['bob-math >= 1.2.2']
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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',
    ],

    namespace_packages=[
      "xbob",
      ],

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

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

    )