From d6bbed3786e63068a1dcfbf830be3f35995aa7c8 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 16 Apr 2018 10:51:27 +0200 Subject: [PATCH] kernel python prefix is always defined, even when it's the same as NB_PYTHON_PREFIX --- repo2docker/buildpacks/conda/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repo2docker/buildpacks/conda/__init__.py b/repo2docker/buildpacks/conda/__init__.py index e7ec6bf5..aba09e47 100644 --- a/repo2docker/buildpacks/conda/__init__.py +++ b/repo2docker/buildpacks/conda/__init__.py @@ -31,6 +31,8 @@ class CondaBuildPack(BaseImage): ] if self.py2: env.append(('KERNEL_PYTHON_PREFIX', '${CONDA_DIR}/envs/kernel')) + else: + env.append(('KERNEL_PYTHON_PREFIX', '${NB_PYTHON_PREFIX}')) return env def get_path(self):