Merge pull request #2897 from MikeMcQuaid/python@2

python_requirement: add libexec/bin to PATH.
This commit is contained in:
Mike McQuaid 2017-07-15 17:27:47 +01:00 committed by GitHub
commit fb90154589

View File

@ -21,6 +21,7 @@ class PythonRequirement < Requirement
# Homebrew Python should take precedence over older Pythons in the PATH
elsif short_version != Version.create("2.7")
ENV.prepend_path "PATH", Formula["python"].opt_bin
ENV.prepend_path "PATH", Formula["python"].opt_libexec/"bin"
end
ENV["PYTHONPATH"] = "#{HOMEBREW_PREFIX}/lib/python#{short_version}/site-packages"