Merge pull request #16250 from branchvincent/pip-cache

formula: add `PIP_CACHE_DIR` to build env
This commit is contained in:
Mike McQuaid 2023-11-23 12:54:01 +00:00 committed by GitHub
commit 1b8207bf47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ module Homebrew
glide_home
java_cache
npm_cache
pip_cache
gclient_cache
].include?(pathname.basename.to_s)
end

View File

@ -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",
}