From f08b5184816fdc99db8cd0dac1e4debbb2a8c14a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 14 Jul 2017 16:58:14 +0100 Subject: [PATCH] python_requirement: add libexec/bin to PATH. This avoids having to fix formulae that use `python` to make them use `python2`. --- Library/Homebrew/requirements/python_requirement.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/requirements/python_requirement.rb b/Library/Homebrew/requirements/python_requirement.rb index e62ec4cfef..a4d34c8393 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"