pipfile: pass --clear flag, and do it separetely to not be ignored

Maybe --clear flag works as part of `pipenv install` now, but code
inspection indicates to me it still don't. This resolves the issue with
the pipenv versions we currently use in tests at least.
pull/1208/head
Erik Sundell 2022-10-31 12:51:00 +01:00
rodzic 442951d010
commit 9a80e95600
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -154,7 +154,8 @@ class PipfileBuildPack(CondaBuildPack):
"${NB_USER}",
"""(cd {working_directory} && \\
PATH="${{KERNEL_PYTHON_PREFIX}}/bin:$PATH" \\
pipenv install {install_option} --system --dev \\
pipenv install {install_option} --system --dev && \\
pipenv --clear \\
)""".format(
working_directory=working_directory,
install_option="--ignore-pipfile"