Merge pull request #10184 from Rylan12/disable-python-doctor-message

doctor: disable python symlink message
This commit is contained in:
Rylan Polster 2020-12-31 13:40:59 -05:00 committed by GitHub
commit 7e5237ca65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -707,20 +707,6 @@ module Homebrew
message message
end end
def check_for_bad_python_symlink
return unless which "python"
`python -V 2>&1` =~ /Python (\d+)\./
# This won't be the right warning if we matched nothing at all
return if Regexp.last_match(1).nil?
return if Regexp.last_match(1) == "2"
<<~EOS
python is symlinked to python#{Regexp.last_match(1)}
This will confuse build scripts and in general lead to subtle breakage.
EOS
end
def check_for_non_prefixed_coreutils def check_for_non_prefixed_coreutils
coreutils = Formula["coreutils"] coreutils = Formula["coreutils"]
return unless coreutils.any_version_installed? return unless coreutils.any_version_installed?