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

Remove pip cache flag #462

Merged
merged 1 commit into from
Jul 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions run-build-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ mkdir -p $NETLIFY_CACHE_DIR/.netlify/plugins

# HOME caches
mkdir -p $NETLIFY_CACHE_DIR/.yarn_cache
if [[ "$NETLIFY_CACHE_PIP_SUBDIRECTORY" == "true" ]]; then
mkdir -p $NETLIFY_CACHE_DIR/.cache/pip
else
mkdir -p $NETLIFY_CACHE_DIR/.cache
fi
mkdir -p $NETLIFY_CACHE_DIR/.cache/pip
mkdir -p $NETLIFY_CACHE_DIR/.cask
mkdir -p $NETLIFY_CACHE_DIR/.emacs.d
mkdir -p $NETLIFY_CACHE_DIR/.m2
Expand Down Expand Up @@ -384,11 +380,7 @@ install_dependencies() {
if [ -f requirements.txt ]
then
echo "Installing pip dependencies"
if [[ "$NETLIFY_CACHE_PIP_SUBDIRECTORY" == "true" ]]; then
restore_home_cache ".cache/pip" "pip cache"
else
restore_home_cache ".cache" "pip cache"
fi
restore_home_cache ".cache/pip" "pip cache"
if pip install -r requirements.txt
then
echo "Pip dependencies installed"
Expand Down Expand Up @@ -674,11 +666,7 @@ cache_artifacts() {
cache_cwd_directory ".netlify/plugins" "build plugins"

cache_home_directory ".yarn_cache" "yarn cache"
if [[ "$NETLIFY_CACHE_PIP_SUBDIRECTORY" == "true" ]]; then
cache_home_directory ".cache/pip" "pip cache"
else
cache_home_directory ".cache" "pip cache"
fi
cache_home_directory ".cache/pip" "pip cache"
cache_home_directory ".cask" "emacs cask dependencies"
cache_home_directory ".emacs.d" "emacs cache"
cache_home_directory ".m2" "maven dependencies"
Expand Down