summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-nbconvert/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-nbconvert/package.py b/var/spack/repos/builtin/packages/py-nbconvert/package.py
index 4347d8727c..f75cf1d1cb 100644
--- a/var/spack/repos/builtin/packages/py-nbconvert/package.py
+++ b/var/spack/repos/builtin/packages/py-nbconvert/package.py
@@ -49,3 +49,12 @@ class PyNbconvert(PythonPackage):
# doesn't try to download it.
install(join_path(self.package_dir, 'style.min.css'),
join_path('nbconvert', 'resources', 'style.min.css'))
+
+ def setup_run_environment(self, env):
+ env.prepend_path("JUPYTER_PATH", self.prefix.share.jupyter)
+
+ def setup_dependent_build_environment(self, env, dependent_spec):
+ env.prepend_path("JUPYTER_PATH", self.prefix.share.jupyter)
+
+ def setup_dependent_run_environment(self, env, dependent_spec):
+ env.prepend_path("JUPYTER_PATH", self.prefix.share.jupyter)