From edb2032ca064ac50ee6aa9710cab5a389d2f1a4c Mon Sep 17 00:00:00 2001 From: Athanasios Karmas <karmas@athenarc.gr> Date: Fri, 19 Nov 2021 15:45:09 +0000 Subject: [PATCH] added path in PYTHONPATH to allow importing modules installed at runtime via pip --- create_JupyterLab_kernel.sh | 3 +++ spack.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/create_JupyterLab_kernel.sh b/create_JupyterLab_kernel.sh index a4c21118..f819f00c 100644 --- a/create_JupyterLab_kernel.sh +++ b/create_JupyterLab_kernel.sh @@ -21,6 +21,9 @@ spack repo add /srv/$INSTALLATION_ROOT/ebrains-spack-builds module use /srv/$INSTALLATION_ROOT/spack/share/spack/modules/linux-centos7-broadwell/ source /srv/$INSTALLATION_ROOT/spack/var/spack/environments/$SPACKIFIED_ENV/loads +# add also user's .local python3.8 packages to allow package installation at runtime +# by the user using pip +export PYTHONPATH=$PYTHONPATH:/opt/app-root/src/.local/lib/python3.8/site-packages # capture the env after spack activation cd /opt/app-root/src diff --git a/spack.yaml b/spack.yaml index d8c472e4..aefab57a 100644 --- a/spack.yaml +++ b/spack.yaml @@ -15,7 +15,7 @@ spack: - py-seaborn %gcc@10.3.0 - py-matplotlib %gcc@10.3.0 # EBRAINS simulators - - nest@3.1 +python +gsl +mpi %gcc@10.3.0 + - nest@3.0 +python +gsl +mpi %gcc@10.3.0 - arbor +mpi ^python@3:3.9 %gcc@10.3.0 - neuron +mpi %gcc@10.3.0 - py-pynn@0.9.6 %gcc@10.3.0 -- GitLab