setup.py 2.3 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>
# Mon 16 Apr 08:18:08 2012 CEST

6
bob_packages = ['bob.core', 'bob.io.base', 'bob.math']
7

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, 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
16
# Define package version
version = open("version.txt").read().rstrip()
17

18
packages = ['blitz >= 0.10', 'boost']
Manuel Günther's avatar
Manuel Günther committed
19
boost_modules = ['system']
André Anjos's avatar
André Anjos committed
20
21
22

setup(

André Anjos's avatar
André Anjos committed
23
    name='bob.measure',
André Anjos's avatar
André Anjos committed
24
    version=version,
25
    description='Bob\'s evalution metrics',
André Anjos's avatar
André Anjos committed
26
    url='http://github.com/bioidiap/bob.measure',
André Anjos's avatar
André Anjos committed
27
28
29
30
31
32
33
34
    license='BSD',
    author='Andre Anjos',
    author_email='andre.anjos@idiap.ch',

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

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

37
38
    setup_requires = build_requires,
    install_requires = build_requires,
André Anjos's avatar
André Anjos committed
39

40

André Anjos's avatar
André Anjos committed
41
42

    ext_modules = [
André Anjos's avatar
André Anjos committed
43
      Extension("bob.measure.version",
André Anjos's avatar
André Anjos committed
44
        [
André Anjos's avatar
André Anjos committed
45
          "bob/measure/version.cpp",
46
        ],
André Anjos's avatar
André Anjos committed
47
48
        packages = packages,
        version = version,
49
        bob_packages = bob_packages,
Manuel Günther's avatar
Manuel Günther committed
50
        boost_modules = boost_modules,
51
52
      ),

André Anjos's avatar
André Anjos committed
53
      Extension("bob.measure._library",
André Anjos's avatar
André Anjos committed
54
        [
André Anjos's avatar
André Anjos committed
55
          "bob/measure/error.cpp",
André Anjos's avatar
André Anjos committed
56
          "bob/measure/main.cpp",
57
        ],
André Anjos's avatar
André Anjos committed
58
        packages = packages,
59
        version = version,
60
        bob_packages = bob_packages,
Manuel Günther's avatar
Manuel Günther committed
61
        boost_modules = boost_modules,
62
63
      ),
    ],
André Anjos's avatar
André Anjos committed
64

65
66
67
68
    cmdclass = {
      'build_ext': build_ext
    },

André Anjos's avatar
André Anjos committed
69
70
    entry_points={
      'console_scripts': [
André Anjos's avatar
André Anjos committed
71
72
73
74
        'bob_compute_perf.py = bob.measure.script.compute_perf:main',
        'bob_eval_threshold.py = bob.measure.script.eval_threshold:main',
        'bob_apply_threshold.py = bob.measure.script.apply_threshold:main',
        'bob_plot_cmc.py = bob.measure.script.plot_cmc:main',
75
76
      ],
    },
André Anjos's avatar
André Anjos committed
77
78

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

89
  )