diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index 605a7e17c9..9bf8bfce36 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -30,6 +30,7 @@ module Homebrew glide_home java_cache npm_cache + pip_cache gclient_cache ].include?(pathname.basename.to_s) end diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 2ab55beccd..f0fc5d6c60 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2871,6 +2871,7 @@ class Formula GOCACHE: "#{HOMEBREW_CACHE}/go_cache", GOPATH: "#{HOMEBREW_CACHE}/go_mod_cache", CARGO_HOME: "#{HOMEBREW_CACHE}/cargo_cache", + PIP_CACHE_DIR: "#{HOMEBREW_CACHE}/pip_cache", CURL_HOME: ENV.fetch("CURL_HOME") { Dir.home }, PYTHONDONTWRITEBYTECODE: "1", }