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'.
This commit is contained in:
Tomoki, Karatsu 2021-02-22 02:13:23 +09:00 committed by GitHub
parent f4e4dba4ef
commit e66b1d4596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,3 +49,12 @@ def patch(self):
# doesn't try to download it. # doesn't try to download it.
install(join_path(self.package_dir, 'style.min.css'), install(join_path(self.package_dir, 'style.min.css'),
join_path('nbconvert', 'resources', '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)