aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-03-01 17:29:25 +0000
committerMike McQuaid2014-03-02 02:08:59 +0000
commit536430e0ae2707955ab8fdcf33772a6d64b83898 (patch)
treec03057e1792ce8671ff398c749c7ca437b25e2ee /Library
parent40369dbbcdf4c1c3447407da299eccb6dca2f4de (diff)
downloadbrew-536430e0ae2707955ab8fdcf33772a6d64b83898.tar.bz2
ENV: request no byte code Python when bottling.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb2
-rw-r--r--Library/Homebrew/extend/ENV/super.rb1
2 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index 71e89a666..cf900dbed 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -53,6 +53,8 @@ module Stdenv
self['CMAKE_FRAMEWORK_PATH'] = HOMEBREW_PREFIX/"Frameworks"
end
+ self['PYTHONDONTWRITEBYTECODE'] = "1" if ARGV.build_bottle?
+
# Os is the default Apple uses for all its stuff so let's trust them
set_cflags "-Os #{SAFE_CFLAGS_FLAGS}"
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index cbfd3dd8c..4879ab820 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -84,6 +84,7 @@ module Superenv
self['CMAKE_LIBRARY_PATH'] = determine_cmake_library_path
self['ACLOCAL_PATH'] = determine_aclocal_path
self['M4'] = MacOS.locate("m4") if deps.include? "autoconf"
+ self['PYTHONDONTWRITEBYTECODE'] = "1" if ARGV.build_bottle?
# The HOMEBREW_CCCFG ENV variable is used by the ENV/cc tool to control
# compiler flag stripping. It consists of a string of characters which act