ENV: request no byte code Python when bottling.

This commit is contained in:
Mike McQuaid 2014-03-01 17:29:25 +00:00
parent 40369dbbcd
commit 536430e0ae
2 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,8 @@ module Stdenv
self['CMAKE_FRAMEWORK_PATH'] = HOMEBREW_PREFIX/"Frameworks" self['CMAKE_FRAMEWORK_PATH'] = HOMEBREW_PREFIX/"Frameworks"
end end
self['PYTHONDONTWRITEBYTECODE'] = "1" if ARGV.build_bottle?
# Os is the default Apple uses for all its stuff so let's trust them # Os is the default Apple uses for all its stuff so let's trust them
set_cflags "-Os #{SAFE_CFLAGS_FLAGS}" set_cflags "-Os #{SAFE_CFLAGS_FLAGS}"

View File

@ -84,6 +84,7 @@ module Superenv
self['CMAKE_LIBRARY_PATH'] = determine_cmake_library_path self['CMAKE_LIBRARY_PATH'] = determine_cmake_library_path
self['ACLOCAL_PATH'] = determine_aclocal_path self['ACLOCAL_PATH'] = determine_aclocal_path
self['M4'] = MacOS.locate("m4") if deps.include? "autoconf" 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 # 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 # compiler flag stripping. It consists of a string of characters which act