File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 3737 - PyLEMS
3838 - PyLEMS_NeuroML2
3939 - jLEMS
40- - jNeuroML
40+ - " jNeuroML:v0.12.2 "
4141 - jNeuroML_Brian2
4242 - jNeuroML_EDEN
4343 - " jNeuroML_NEURON:8.2.1"
Original file line number Diff line number Diff line change 44from pathlib import Path
55
66from omv .engines .utils .wdir import working_dir
7+ from omv .common .inout import inform
78
89
9- def install_jnml ():
10- version = "v0.12.2"
10+ def install_jnml (version ):
11+
12+ if not version :
13+ version = "v0.12.2"
1114
1215 try :
1316 jnmlhome = os .environ ["JNML_HOME" ]
@@ -41,3 +44,5 @@ def install_jnml():
4144 ]
4245 )
4346 check_output (["unzip" , "jNeuroML.zip" ])
47+
48+ inform ("Successfully installed jNeuroML " + version , indent = 1 )
Original file line number Diff line number Diff line change @@ -47,6 +47,6 @@ def install_netpyne(version=None):
4747 "python-dateutil==2.8.0" ,
4848 ]
4949 )
50- print ( check_output ([ sys . executable , "setup.py" , "install" ]) )
50+ pip_install ( "." )
5151
5252 m = "Successfully installed NetPyNE..."
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ def is_installed():
7878 def install (version ):
7979 from omv .engines .getjnml import install_jnml
8080
81- inform ("Will fetch and install the latest jNeuroML jar" , indent = 2 )
82- install_jnml ()
81+ inform ("Will fetch and install jNeuroML jar" , indent = 2 )
82+ install_jnml (version )
8383
8484 def run (self ):
8585 try :
Original file line number Diff line number Diff line change @@ -226,14 +226,9 @@ def _install_engine(eng):
226226 if ee .is_installed ():
227227 already_installed = True
228228 else :
229- if engine_version is not None :
230- raise Exception (
231- "Currently, cannot install a specific version of engine %s"
232- % eng
233- )
234229 from omv .engines .getjnml import install_jnml
235230
236- install_jnml ()
231+ install_jnml (engine_version )
237232
238233 elif eng .lower () == "neuroConstruct" or eng == "Py_neuroConstruct" .lower ():
239234 from omv .engines .pyneuroconstruct import PyneuroConstructEngine as ee
You can’t perform that action at this time.
0 commit comments