diff options
| author | Mike McQuaid | 2017-07-14 16:58:14 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-07-14 16:58:14 +0100 |
| commit | f08b5184816fdc99db8cd0dac1e4debbb2a8c14a (patch) | |
| tree | a36d7690ce35a047c077c9c360b8d156ba1e33c9 /Library/Homebrew/requirements/python_requirement.rb | |
| parent | 4ca2efb12dd1399526e0aa845b56ede58daecddd (diff) | |
| download | brew-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/Homebrew/requirements/python_requirement.rb')
| -rw-r--r-- | Library/Homebrew/requirements/python_requirement.rb | 1 |
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" |
