kopia lustrzana https://github.com/jupyterhub/repo2docker
safe one if clause (intersection is already false-y)
rodzic
d12c4b54c3
commit
b032a7cd27
|
@ -554,19 +554,18 @@ class BaseImage(BuildPack):
|
||||||
))
|
))
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
if self.stencila_contexts:
|
if {'py', 'pyjp'}.intersection(self.stencila_contexts):
|
||||||
if {'py', 'pyjp'}.intersection(self.stencila_contexts):
|
assemble_scripts.extend(
|
||||||
assemble_scripts.extend(
|
[
|
||||||
[
|
(
|
||||||
(
|
"${NB_USER}",
|
||||||
"${NB_USER}",
|
r"""
|
||||||
r"""
|
${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache https://github.com/stencila/py/archive/f1260796.tar.gz && \
|
||||||
${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache https://github.com/stencila/py/archive/f1260796.tar.gz && \
|
${KERNEL_PYTHON_PREFIX}/bin/python -m stencila register
|
||||||
${KERNEL_PYTHON_PREFIX}/bin/python -m stencila register
|
""",
|
||||||
""",
|
)
|
||||||
)
|
]
|
||||||
]
|
)
|
||||||
)
|
|
||||||
if self.stencila_manifest_dir:
|
if self.stencila_manifest_dir:
|
||||||
assemble_scripts.extend(
|
assemble_scripts.extend(
|
||||||
[
|
[
|
||||||
|
|
Ładowanie…
Reference in New Issue