-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
56 lines (48 loc) · 1.59 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
from distutils.core import setup
from distutils.extension import Extension
import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if ('USE_CYTHON' in os.environ):
USE_CYTHON = int(os.environ['USE_CYTHON'])
else:
USE_CYTHON = False
ext = '.pyx' if USE_CYTHON else '.c'
if (not on_rtd):
import numpy
extensions = [Extension("pyparticleest.utils.ckalman", ["pyparticleest/utils/ckalman" + ext]),
Extension("pyparticleest.utils.cmlnlg_compute", ["pyparticleest/utils/cmlnlg_compute" + ext],
include_dirs=[numpy.get_include()])]
else:
extensions = None
name = 'pyParticleEst'
version = '1.1.4'
packages = ['pyparticleest', 'pyparticleest/models', 'pyparticleest/paramest', 'pyparticleest/utils']
url = 'http://www.control.lth.se/Staff/JerkerNordh/pyparticleest.html'
author = 'Jerker Nordh'
author_email = '[email protected]'
description = 'Framework for particle based estimation methods, such as particle filtering and smoothing'
lic = 'LGPL'
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
try:
setup(name=name,
version=version,
packages=packages,
url=url,
author=author,
author_email=author_email,
description=description,
license=lic,
ext_modules=extensions,
)
except SystemExit:
setup(name=name,
version=version,
packages=packages,
url=url,
author=author,
author_email=author_email,
description=description,
license=lic,
)