Clarify Pipfile's use of relative paths

pull/649/head
Erik Sundell 2019-06-22 17:51:48 +02:00
rodzic a8c232e6a5
commit c9fd0a99c8
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -96,6 +96,9 @@ class PipfileBuildPack(CondaBuildPack):
python = "${KERNEL_PYTHON_PREFIX}/bin/python"
pipfile = self.binder_path("Pipfile")
pipfile_lock = self.binder_path("Pipfile.lock")
# let pipenv work relative to the dir that has the Pipfile that can
# contain relative references such as:
# my_package = {path=".", editable=true}
working_directory = self.binder_dir or "."
assemble_scripts.append(("${NB_USER}", "pip install pipenv"))
# if Pipfile.lock isn't found, Pipfile is used to create one