Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
132 lines (117 loc) · 4.19 KB
/
Copy pathsetup.py
File metadata and controls
132 lines (117 loc) · 4.19 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
""" eFEL setup """
"""
Copyright (c) 2015, EPFL/Blue Brain Project
Copyright (c) 2025-2026 Open Brain Institute
This file is part of eFEL <https://github.com/openbraininstitute/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.
"""
from setuptools import setup, Extension
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',
'BasicFeatures.cpp',
'SpikeEvent.cpp',
'SpikeShape.cpp',
'Subthreshold.cpp',
'FillFptrTable.cpp',
'DependencyTree.cpp',
'cfeature.cpp',
'mapoperations.cpp']
cppcore_headers = ['Utils.h',
'BasicFeatures.h',
'SpikeEvent.h',
'SpikeShape.h',
'Subthreshold.h',
'FillFptrTable.h',
'DependencyTree.h',
'cfeature.h',
'Global.h',
'mapoperations.h',
'types.h',
'eFELLogger.h',
'EfelExceptions.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]
coverage_flags = []
if os.environ.get('EFEL_COVERAGE_BUILD'):
coverage_flags = ['-fprofile-arcs', '-ftest-coverage']
cppcore = Extension('efel.cppcore',
sources=cppcore_sources,
include_dirs=['efel/cppcore/'],
extra_compile_args=coverage_flags + ['-std=c++17'],
extra_link_args=coverage_flags)
with open("README.md", encoding="utf-8") as f:
README = f.read()
setup(
name="efel",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
python_requires='>=3.10',
install_requires=[
'numpy>=1.6',
'neo>=0.14.0',
'typing-extensions>=4.8.0',
'scipy>=1.12.0',
],
packages=[
'efel',
'efel.pyfeatures',
'efel.units'
],
extras_require={
'neo': ['neo>=0.14.0'],
'nwb': ['pynwb>=2.6.0'],
'h5py': ['h5py'],
},
author="Open Brain Institute",
maintainer="OBI Maintainer",
maintainer_email="support@openbraininstitute.org",
description="eFEL: electrophysiology feature extraction library",
long_description=README,
long_description_content_type="text/markdown",
license="LGPLv3",
keywords=[
'feature',
'extraction',
'electrophysiology',
'BlueBrainProject'],
url='https://github.com/openbraininstitute/eFEL',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'License :: OSI Approved :: GNU Lesser General Public '
'License v3 (LGPLv3)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Topic :: Scientific/Engineering',
'Topic :: Utilities'],
package_data={
'': ['DependencyV5.txt',
'README.md',
'units/units.json'] + cppcore_headers},
ext_modules=[cppcore])