BlueBrain / spack-packages

Repository of spack external packages
7 stars 6 forks source link

Set PYTHONPATH for NEURON when compiled with +python #59

Closed pramodskumbhar closed 6 years ago

pramodskumbhar commented 6 years ago

Fix #58.

@wvangeit : I was bit conservative and using disable-pysetup option. Especially considering cross-compiling architectures where we have weird setup of Python.

This should now set correct PYTHONPATH. I am searching for egg file and then use that as directory name. Note that we build static libraries by default (considering bg-q system). I think I should change this considering most people will need shared libraries. Today I do:

spack install neuron@develop +python +shared

P.S. Spack uses modules underneath and create automatically. So if we look at generated modules we see that there was no PYTHONPATH:

neuron_no_py_path

This PR should fix this:

neuron_py_path

pramodskumbhar commented 6 years ago

@wvangeit: this branch neuron_python_fix is almost ready but before merging I would like to test with multiple compiler on Lugano viz cluster. There is maintenance window over next few days.

If require temporarily you can test/use this branch.

Also yesterday we were wondering why module for automake is not being generated. We have blacklist entry where we can disable module generation for certain packages. This helps to avoid creating module for utilities like flex, bison, autoconf.