aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements/python_dependency.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-11-01 11:19:23 -0700
committerMike McQuaid2013-11-01 11:19:23 -0700
commitdcd2907ee24345e84fe2305432db67bdcb4eea33 (patch)
treeda9c70f6b71d7bf8f7e4a77da61e81f39bfdb3bd /Library/Homebrew/requirements/python_dependency.rb
parent6e09de196902d56ec1bf5111952abd0b3d399e58 (diff)
downloadhomebrew-dcd2907ee24345e84fe2305432db67bdcb4eea33.tar.bz2
python_dependency: fix includes location on 10.9.
Fixes #23837. Fixes #23866.
Diffstat (limited to 'Library/Homebrew/requirements/python_dependency.rb')
-rw-r--r--Library/Homebrew/requirements/python_dependency.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb
index 12e0342b2..ff1d0ba67 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