From 42a95dc7a79fcbe59d6279b16695e48ac2d394f3 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sat, 7 Jan 2023 15:22:06 +0000 Subject: [PATCH] Add PYTHONDONTWRITEBYTECODE to common_stage_test_env. Closes #14274 --- Library/Homebrew/formula.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 7850a2649a..bb8a0e6bfd 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2659,11 +2659,12 @@ class Formula # Common environment variables used at both build and test time. def common_stage_test_env { - _JAVA_OPTIONS: "-Duser.home=#{HOMEBREW_CACHE}/java_cache", - GOCACHE: "#{HOMEBREW_CACHE}/go_cache", - GOPATH: "#{HOMEBREW_CACHE}/go_mod_cache", - CARGO_HOME: "#{HOMEBREW_CACHE}/cargo_cache", - CURL_HOME: ENV.fetch("CURL_HOME") { Dir.home }, + _JAVA_OPTIONS: "-Duser.home=#{HOMEBREW_CACHE}/java_cache", + GOCACHE: "#{HOMEBREW_CACHE}/go_cache", + GOPATH: "#{HOMEBREW_CACHE}/go_mod_cache", + CARGO_HOME: "#{HOMEBREW_CACHE}/cargo_cache", + CURL_HOME: ENV.fetch("CURL_HOME") { Dir.home }, + PYTHONDONTWRITEBYTECODE: "1", } end