summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomoki, Karatsu <49965247+t-karatsu@users.noreply.github.com>2021-02-22 02:13:23 +0900
committerGitHub <noreply@github.com>2021-02-21 11:13:23 -0600
commite66b1d4596dcccf61764ec6c22772746f01d6d78 (patch)
treeb808a47cadded35801577c57cd92796c7963c71d
parentf4e4dba4ef3f7fba4baf3bf0ac82f7d831608237 (diff)
downloadspack-e66b1d4596dcccf61764ec6c22772746f01d6d78.tar.gz
spack-e66b1d4596dcccf61764ec6c22772746f01d6d78.tar.bz2
spack-e66b1d4596dcccf61764ec6c22772746f01d6d78.tar.xz
spack-e66b1d4596dcccf61764ec6c22772746f01d6d78.zip
py-nbconvert: add function 'setup_dependent_build_environment'. (#21827)
* py-nbconvert: add function 'setup_dependent_build_environment'. * add 'setup_dependent_run_environment' * add 'setup_run_environment'.
-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)