Skip to content

Commit 7b2a57c

Browse files
Merge pull request #212 from NeuroML/feat/improve-extras
feat: improve installation of extra deps
2 parents ba092ab + 9f6b25c commit 7b2a57c

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

setup.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@
55
version = pyneuroml.__version__
66
jnml_version = pyneuroml.JNEUROML_VERSION
77

8+
# generate extra deps
9+
extras = {
10+
"neuron": ["NEURON", "pyyaml"],
11+
"brian": ["Brian2"],
12+
"netpyne": ["netpyne"],
13+
"povray": ["opencv-python"],
14+
"hdf5": ["tables"],
15+
"analysis": ["pyelectro"],
16+
"tune": ["neurotune @ git+https://github.com/NeuralEnsemble/neurotune.git@master#egg=neurotune",
17+
"inspyred @ git+https://github.com/aarongarrett/inspyred.git@master#egg=inspyred",
18+
"ppft"],
19+
}
20+
extras["all"] = sum(extras.values(), []),
21+
822
setup(
923
name="pyNeuroML",
1024
version=version,
@@ -90,15 +104,7 @@
90104
"pandas",
91105
"plotly"
92106
],
93-
extras_require={
94-
"neuron": ["NEURON", "pyyaml"],
95-
"brian": ["Brian2"],
96-
"netpyne": ["netpyne"],
97-
"povray": ["opencv-python"],
98-
"hdf5": ["tables"],
99-
"analysis": ["pyelectro"],
100-
"tune": ["neurotune", "ppft"],
101-
},
107+
extras_require=extras,
102108
classifiers=[
103109
"Intended Audience :: Science/Research",
104110
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",

0 commit comments

Comments
 (0)