Skip to content
Snippets Groups Projects
Commit bdbaf613 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

python_dependency: fix includes location on 10.9.

Fixes Homebrew/homebrew#23837.
Fixes Homebrew/homebrew#23866.
parent fd254c38
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment