Python package needs NEURON extensions - where to save
Posted: Tue Mar 15, 2016 2:29 pm
Hello!
I am building a Python package that relies on NEURON and that needs some extensions (e.g. AXNODE.mod). In order to load these extensions, I normally just compile them in my project folder via nrnivmodl and NEURON finds the x86_64 folder (or i386 etc.) when I call "import neuron" in a script in the same folder.
Now, however, I intend to enable others to use my code with minimal effort, definitely not require them to run nrnivmodl every time or copy the x86_64 folder into their project folder. I am aware of the nrn_load_dll function but then I need to know the path where the extensions were compiled to.
So, what is the best practice to integrate the extensions smoothly? Are they always local or can they be integrated into NEURON globally somehow?
Thank you very much.
I am building a Python package that relies on NEURON and that needs some extensions (e.g. AXNODE.mod). In order to load these extensions, I normally just compile them in my project folder via nrnivmodl and NEURON finds the x86_64 folder (or i386 etc.) when I call "import neuron" in a script in the same folder.
Now, however, I intend to enable others to use my code with minimal effort, definitely not require them to run nrnivmodl every time or copy the x86_64 folder into their project folder. I am aware of the nrn_load_dll function but then I need to know the path where the extensions were compiled to.
So, what is the best practice to integrate the extensions smoothly? Are they always local or can they be integrated into NEURON globally somehow?
Thank you very much.