diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/superenv.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb index 668d62aa1..81d5b3c31 100644 --- a/Library/Homebrew/superenv.rb +++ b/Library/Homebrew/superenv.rb @@ -106,6 +106,7 @@ class << ENV paths << "#{MacSystem.xcode43_developer_dir}/Toolchains/XcodeDefault.xctoolchain/usr/bin" end paths += all_deps.map{|dep| "#{HOMEBREW_PREFIX}/opt/#{dep}/bin" } + paths << "#{HOMEBREW_PREFIX}/opt/python/bin" if brewed_python? paths << "#{MacSystem.x11_prefix}/bin" if x11? paths += %w{/usr/bin /bin /usr/sbin /sbin} paths.to_path_s @@ -137,7 +138,7 @@ class << ENV paths << "#{sdk}/usr/include/libxml2" unless deps.include? 'libxml2' if MacSystem.xcode43_without_clt? paths << "#{sdk}/usr/include/apache2" - paths << if Formula.factory('python').linked_keg.directory? + paths << if brewed_python? "#{HOMEBREW_PREFIX}/opt/python/Frameworks/Python.framework/Headers" else "#{sdk}/System/Library/Frameworks/Python.framework/Versions/Current/include/python2.7" @@ -193,6 +194,11 @@ class << ENV end end + def brewed_python? + require 'formula' + Formula.factory('python').linked_keg.directory? + end + public ### NO LONGER NECESSARY OR NO LONGER SUPPORTED |
