forked from BlueBrain/eFEL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
115 lines (104 loc) · 3.99 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
""" eFEL setup """
# pylint: disable=C0325
"""
Copyright (c) 2015, EPFL/Blue Brain Project
This file is part of eFEL <https://github.com/BlueBrain/eFEL>
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License version 3.0 as published
by the Free Software Foundation.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension # pylint: disable=E0611,F0401
import os
import versioneer
BASEDIR = os.path.dirname(os.path.abspath(__file__))
cppcore_dir = os.path.join('efel', 'cppcore')
cppcore_sources = ['cppcore.cpp',
'Utils.cpp',
'LibV1.cpp',
'LibV2.cpp',
'LibV3.cpp',
'LibV4.cpp',
'LibV5.cpp',
'FillFptrTable.cpp',
'DependencyTree.cpp',
'efel.cpp',
'cfeature.cpp',
'mapoperations.cpp']
cppcore_headers = ['Utils.h',
'LibV1.h',
'LibV2.h',
'LibV3.h',
'LibV4.h',
'LibV5.h',
'FillFptrTable.h',
'DependencyTree.h',
'efel.h',
'cfeature.h',
'Global.h',
'mapoperations.h',
'types.h',
'eFELLogger.h']
cppcore_sources = [
os.path.join(
cppcore_dir,
filename) for filename in cppcore_sources]
cppcore_headers = [
os.path.join(
'cppcore',
filename) for filename in cppcore_headers]
cppcore = Extension('efel.cppcore',
sources=cppcore_sources,
include_dirs=['efel/cppcore/'])
setup(
name="efel",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
install_requires=['numpy>=1.6', 'six'],
extras_require={'neo': ['neo[neomatlabio]>=0.5.1']},
packages=['efel', 'efel.pyfeatures'],
author="BlueBrain Project, EPFL",
maintainer="Werner Van Geit",
maintainer_email="[email protected]",
description="Electrophys Feature Extract Library (eFEL)",
long_description="The Electrophys Feature Extract Library (eFEL) allows "
"neuroscientists to automatically extract features from time series data "
"recorded from neurons (both in vitro and in silico). "
"Examples are the action potential width and amplitude in "
"voltage traces recorded during whole-cell patch clamp experiments. "
"The user of the library provides a set of traces and selects the "
"features to be calculated. The library will then extract the requested "
"features and return the values to the user.",
license="LGPLv3",
keywords=(
'feature',
'extraction',
'electrophysiology',
'BlueBrainProject'),
url='https://github.com/BlueBrain/eFEL',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: GNU Lesser General Public '
'License v3 (LGPLv3)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Operating System :: POSIX',
'Topic :: Scientific/Engineering',
'Topic :: Utilities'],
package_data={
'': ['DependencyV5.txt',
'VERSION.txt',
'README.md',
'GITHASH.txt'] + cppcore_headers},
ext_modules=[cppcore])