forked from bioidiap/bob.learn.linear
/
setup.py
107 lines (88 loc) · 2.83 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Mon 16 Apr 08:18:08 2012 CEST
bob_packages = ['bob.core', 'bob.math', 'bob.io.base', 'bob.learn.activation']
from setuptools import setup, find_packages, dist
dist.Distribution(dict(setup_requires=['bob.extension', 'bob.blitz'] + bob_packages))
from bob.blitz.extension import Extension, Library, build_ext
from bob.extension.utils import load_requirements
build_requires = load_requirements()
# Define package version
version = open("version.txt").read().rstrip()
packages = ['boost']
boost_modules = ['system']
setup(
name='bob.learn.linear',
version=version,
description='Linear Machine and Trainers for Bob',
url='http://gitlab.idiap.ch/bob/bob.learn.linear',
license='BSD',
author='Andre Anjos',
author_email='andre.anjos@idiap.ch',
long_description=open('README.rst').read(),
packages=find_packages(),
include_package_data=True,
zip_safe=False,
setup_requires = build_requires,
install_requires = build_requires,
ext_modules = [
Extension("bob.learn.linear.version",
[
"bob/learn/linear/version.cpp",
],
bob_packages = bob_packages,
version = version,
packages = packages,
boost_modules = boost_modules,
),
Library("bob.learn.linear.bob_learn_linear",
[
"bob/learn/linear/cpp/machine.cpp",
"bob/learn/linear/cpp/pca.cpp",
"bob/learn/linear/cpp/lda.cpp",
"bob/learn/linear/cpp/logreg.cpp",
"bob/learn/linear/cpp/whitening.cpp",
"bob/learn/linear/cpp/wccn.cpp",
"bob/learn/linear/cpp/bic.cpp",
],
bob_packages = bob_packages,
version = version,
packages = packages,
boost_modules = boost_modules,
),
Extension("bob.learn.linear._library",
[
"bob/learn/linear/machine.cpp",
"bob/learn/linear/pca.cpp",
"bob/learn/linear/lda.cpp",
"bob/learn/linear/logreg.cpp",
"bob/learn/linear/whitening.cpp",
"bob/learn/linear/wccn.cpp",
"bob/learn/linear/bic.cpp",
"bob/learn/linear/main.cpp",
],
bob_packages = bob_packages,
version = version,
packages = packages,
boost_modules = boost_modules,
),
],
cmdclass = {
'build_ext': build_ext
},
entry_points={
'console_scripts': [
],
},
classifiers = [
'Framework :: Bob',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)