aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-07-14 16:58:14 +0100
committerMike McQuaid2017-07-14 16:58:14 +0100
commitf08b5184816fdc99db8cd0dac1e4debbb2a8c14a (patch)
treea36d7690ce35a047c077c9c360b8d156ba1e33c9 /Library
parent4ca2efb12dd1399526e0aa845b56ede58daecddd (diff)
downloadbrew-f08b5184816fdc99db8cd0dac1e4debbb2a8c14a.tar.bz2
python_requirement: add libexec/bin to PATH.
This avoids having to fix formulae that use `python` to make them use `python2`.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements/python_requirement.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements/python_requirement.rb b/Library/Homebrew/requirements/python_requirement.rb
index e62ec4cfe..a4d34c839 100644
--- a/Library/Homebrew/requirements/python_requirement.rb
+++ b/Library/Homebrew/requirements/python_requirement.rb
@@ -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"