diff options
| author | Tim D. Smith | 2014-12-11 09:07:32 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2014-12-11 09:47:50 -0800 |
| commit | 1b74e9d564b84fee52617738c578c98268bc9183 (patch) | |
| tree | c04d2500e9971111b0f89a2dfc2a97dde2387231 /Library/Formula | |
| parent | 6dc27a526e6f6ead3a2f787d93fbbc4056f0656b (diff) | |
| download | homebrew-1b74e9d564b84fee52617738c578c98268bc9183.tar.bz2 | |
shiboken: recommend opt paths in build helpers
Shiboken asks other packages to use Cellar paths to Python's include
path. Make sure it uses the opt path instead.
Closes #34893, resolves #34783.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/shiboken.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/shiboken.rb b/Library/Formula/shiboken.rb index 94caf84c6..3265a4864 100644 --- a/Library/Formula/shiboken.rb +++ b/Library/Formula/shiboken.rb @@ -29,11 +29,11 @@ class Shiboken < Formula # Building the tests also runs them. args << "-DBUILD_TESTS=ON" # if not System Python - python_framework = "#{Formula[python].prefix}/Frameworks/Python.framework/Versions/#{version}" + python_framework = "#{Formula[python].opt_prefix}/Frameworks/Python.framework/Versions/#{version}" if version.to_s[0,1] == "2" && Formula["python"].installed? args << "-DPYTHON_INCLUDE_DIR:PATH=#{python_framework}/Headers" args << "-DPYTHON_LIBRARY:FILEPATH=#{python_framework}/lib/libpython#{version}.dylib" - elsif version.to_s[0,1] == "3" + elsif version.to_s[0,1] == "3" && Formula["python3"].installed? args << "-DPYTHON3_INCLUDE_DIR:PATH=#{python_framework}/Headers" args << "-DPYTHON3_LIBRARY:FILEPATH=#{python_framework}/lib/libpython#{version}.dylib" args << "-DUSE_PYTHON3:BOOL=ON" |
