formula: add PIP_CACHE_DIR to build env

This commit is contained in:
Branch Vincent 2023-11-22 13:11:53 -08:00
parent aef456fd03
commit e58ed46195
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -2880,6 +2880,7 @@ class Formula
GOPATH: "#{HOMEBREW_CACHE}/go_mod_cache", GOPATH: "#{HOMEBREW_CACHE}/go_mod_cache",
CARGO_HOME: "#{HOMEBREW_CACHE}/cargo_cache", CARGO_HOME: "#{HOMEBREW_CACHE}/cargo_cache",
CURL_HOME: ENV.fetch("CURL_HOME") { Dir.home }, CURL_HOME: ENV.fetch("CURL_HOME") { Dir.home },
PIP_CACHE_DIR: "#{HOMEBREW_CACHE}/pip_cache",
PYTHONDONTWRITEBYTECODE: "1", PYTHONDONTWRITEBYTECODE: "1",
} }
end end