From bdbaf61304ca8e511f764fddc5636fabe3b14091 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 1 Nov 2013 11:19:23 -0700 Subject: [PATCH] python_dependency: fix includes location on 10.9. Fixes Homebrew/homebrew#23837. Fixes Homebrew/homebrew#23866. --- Library/Homebrew/requirements/python_dependency.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index 12e0342b24..ff1d0ba677 100644 --- a/Library/Homebrew/requirements/python_dependency.rb +++ b/Library/Homebrew/requirements/python_dependency.rb @@ -142,8 +142,8 @@ class PythonDependency < Requirement if brewed? # Homebrew since a long while only supports frameworked python HOMEBREW_PREFIX/"opt/#{python}/Frameworks/Python.framework/Versions/#{version.major}.#{version.minor}" - elsif from_osx? - # Python on OS X has been stripped off its includes (unless you install the CLT), therefore we use the MacOS.sdk. + elsif from_osx? and MacOS.version < :mavericks + # Python on OS X before Mavericks has been stripped off its includes (unless you install the CLT), therefore we use the MacOS.sdk. Pathname.new("#{MacOS.sdk_path}/System/Library/Frameworks/Python.framework/Versions/#{version.major}.#{version.minor}") else # What Python knows about itself