-
Notifications
You must be signed in to change notification settings - Fork 38
/
setup.py
120 lines (105 loc) · 3.72 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
116
117
118
119
120
""" eFEL setup """
"""
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.
"""
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(),
install_requires=[
'numpy>=1.6',
'neo>=0.5.2',
'pynwb>=2.6.0',
'typing-extensions>=4.8.0',
'scipy>=1.12.0,<2.0.0',
],
packages=[
'efel',
'efel.pyfeatures',
'efel.units'
],
author="BlueBrain Project, EPFL",
maintainer="Werner Van Geit",
maintainer_email="[email protected]",
description="Electrophys Feature Extract Library (eFEL)",
long_description=README,
long_description_content_type="text/markdown",
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 :: 3',
'Operating System :: POSIX',
'Topic :: Scientific/Engineering',
'Topic :: Utilities'],
package_data={
'': ['DependencyV5.txt',
'README.md',
'units/units.json'] + cppcore_headers},
ext_modules=[cppcore])