Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python_requirement: add libexec/bin to PATH. #2897

Merged
merged 1 commit into from
Jul 15, 2017

Conversation

MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Jul 14, 2017

This avoids having to fix formulae that use python to make them use python2.

For when/if Homebrew/homebrew-core#14408 gets merged.

JCount
JCount previously requested changes Jul 14, 2017
Copy link
Contributor

@JCount JCount left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@MikeMcQuaid MikeMcQuaid changed the title python_requirement: use python@2 formula. python_requirement: add libexec/bin to PATH. Jul 14, 2017
@@ -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"].libexec/"bin"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be .opt_libexec/"bin" for the sake of consistency with the .opt_bin above it?

This avoids having to fix formulae that use `python` to make them use
`python2`.
@MikeMcQuaid MikeMcQuaid merged commit fb90154 into Homebrew:master Jul 15, 2017
@MikeMcQuaid MikeMcQuaid deleted the python@2 branch July 15, 2017 16:27
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants