-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
115 lines (95 loc) · 2.88 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
108
109
110
111
112
113
114
115
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <[email protected]>
# Mon 16 Apr 08:18:08 2012 CEST
from setuptools import setup, find_packages, dist
dist.Distribution(dict(setup_requires=['bob.extension', 'bob.blitz']))
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 = ['blitz >= 0.10', 'boost']
setup(
name='bob.core',
version=version,
description='Core utilities required on all Bob modules',
url='http://gitlab.idiap.ch/bob/bob.core',
license='BSD',
author='Andre Anjos',
author_email='[email protected]',
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.core.version",
[
"bob/core/version.cpp",
],
version = version,
packages = packages,
boost_modules = ['system']
),
Library("bob.core.bob_core",
[
"bob/core/cpp/logging.cpp",
],
version = version,
packages = packages,
boost_modules = ['system', 'iostreams', 'filesystem'],
),
Extension("bob.core._convert",
[
"bob/core/convert.cpp",
],
version = version,
packages = packages,
),
Extension("bob.core._logging",
[
"bob/core/logging.cpp",
],
version = version,
packages = packages,
boost_modules = ['system', 'iostreams', 'filesystem'],
),
Extension("bob.core.random._library",
[
"bob/core/random/mt19937.cpp",
"bob/core/random/uniform.cpp",
"bob/core/random/normal.cpp",
"bob/core/random/lognormal.cpp",
"bob/core/random/gamma.cpp",
"bob/core/random/binomial.cpp",
"bob/core/random/discrete.cpp",
"bob/core/random/main.cpp",
],
version = version,
packages = packages,
boost_modules = ['system', 'iostreams', 'filesystem'],
),
Extension("bob.core._test", [
"bob/core/test.cpp",
],
version = version,
packages = packages,
boost_modules = ['system', 'iostreams', 'filesystem'],
),
],
cmdclass = {
'build_ext': build_ext
},
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',
],
)