diff options
| author | Adam Vandenberg | 2012-02-25 17:12:54 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-25 17:12:54 -0800 |
| commit | c6e409c7d521917d500186559e0a926091183734 (patch) | |
| tree | 3edb3399bb62806b4f842e1ff83f3eea3a772645 /Library/Formula/python3.rb | |
| parent | 1637d68e469fb345eb865a80f09c4bcaa3a01c90 (diff) | |
| download | homebrew-c6e409c7d521917d500186559e0a926091183734.tar.bz2 | |
Python 2/3: add effective_include
Diffstat (limited to 'Library/Formula/python3.rb')
| -rw-r--r-- | Library/Formula/python3.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index 582cef9e2..9021371f1 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -154,6 +154,14 @@ class Python3 < 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/3.2/include" if as_framework? + # Otherwise use just 'include' + return include + end + # The Cellar location of site-packages def site_packages effective_lib+"python3.2/site-packages" |
