From c6e409c7d521917d500186559e0a926091183734 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 25 Feb 2012 17:12:54 -0800 Subject: Python 2/3: add effective_include --- Library/Formula/python.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Formula/python.rb') diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 38ca7ad2e..653a27313 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -148,6 +148,14 @@ class Python < Formula return lib end + # include folder,taking into account whether we are a Framework build or not + def effective_include + # If we're installed or installing as a Framework, then use that location. + return prefix+"Frameworks/Python.framework/Versions/2.7/include" if as_framework? + # Otherwise use just 'include' + return include + end + # The Cellar location of site-packages def site_packages effective_lib+"python2.7/site-packages" -- cgit v1.2.3