From 757799516da67482e343ee64bdf536955eb91a71 Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 27 Jan 2022 10:54:11 +0100 Subject: [PATCH] ensure some cache files are cleaned up --- repo2docker/buildpacks/pipfile/__init__.py | 5 ++++- tests/venv/postBuild/postBuild | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/repo2docker/buildpacks/pipfile/__init__.py b/repo2docker/buildpacks/pipfile/__init__.py index 959c8b72..20214099 100644 --- a/repo2docker/buildpacks/pipfile/__init__.py +++ b/repo2docker/buildpacks/pipfile/__init__.py @@ -88,7 +88,10 @@ class PipfileBuildPack(CondaBuildPack): scripts = super().get_preassemble_scripts() # install pipenv to install dependencies within Pipfile.lock or Pipfile scripts.append( - ("${NB_USER}", "${KERNEL_PYTHON_PREFIX}/bin/pip install pipenv==2018.11.26") + ( + "${NB_USER}", + "${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir pipenv==2018.11.26", + ) ) return scripts diff --git a/tests/venv/postBuild/postBuild b/tests/venv/postBuild/postBuild index c1e89e8a..4f301be5 100755 --- a/tests/venv/postBuild/postBuild +++ b/tests/venv/postBuild/postBuild @@ -1,3 +1,4 @@ #!/bin/bash jupyter nbextension enable --py --sys-prefix ipyleaflet -npm install --global configurable-http-proxy \ No newline at end of file +npm install --global configurable-http-proxy +npm cache clean --force