Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit b87e468

Browse files
authored
Merge pull request #462 from netlify/bbot-873-remove-pip-cache-flag
Remove pip cache flag
2 parents 5f05fc9 + 629c53f commit b87e468

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

run-build-functions.sh

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@ mkdir -p $NETLIFY_CACHE_DIR/.netlify/plugins
4646

4747
# HOME caches
4848
mkdir -p $NETLIFY_CACHE_DIR/.yarn_cache
49-
if [[ "$NETLIFY_CACHE_PIP_SUBDIRECTORY" == "true" ]]; then
50-
mkdir -p $NETLIFY_CACHE_DIR/.cache/pip
51-
else
52-
mkdir -p $NETLIFY_CACHE_DIR/.cache
53-
fi
49+
mkdir -p $NETLIFY_CACHE_DIR/.cache/pip
5450
mkdir -p $NETLIFY_CACHE_DIR/.cask
5551
mkdir -p $NETLIFY_CACHE_DIR/.emacs.d
5652
mkdir -p $NETLIFY_CACHE_DIR/.m2
@@ -384,11 +380,7 @@ install_dependencies() {
384380
if [ -f requirements.txt ]
385381
then
386382
echo "Installing pip dependencies"
387-
if [[ "$NETLIFY_CACHE_PIP_SUBDIRECTORY" == "true" ]]; then
388-
restore_home_cache ".cache/pip" "pip cache"
389-
else
390-
restore_home_cache ".cache" "pip cache"
391-
fi
383+
restore_home_cache ".cache/pip" "pip cache"
392384
if pip install -r requirements.txt
393385
then
394386
echo "Pip dependencies installed"
@@ -674,11 +666,7 @@ cache_artifacts() {
674666
cache_cwd_directory ".netlify/plugins" "build plugins"
675667

676668
cache_home_directory ".yarn_cache" "yarn cache"
677-
if [[ "$NETLIFY_CACHE_PIP_SUBDIRECTORY" == "true" ]]; then
678-
cache_home_directory ".cache/pip" "pip cache"
679-
else
680-
cache_home_directory ".cache" "pip cache"
681-
fi
669+
cache_home_directory ".cache/pip" "pip cache"
682670
cache_home_directory ".cask" "emacs cask dependencies"
683671
cache_home_directory ".emacs.d" "emacs cache"
684672
cache_home_directory ".m2" "maven dependencies"

0 commit comments

Comments
 (0)