From e04f450684f678b8271c9fed6a80fda6eebea508 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Wed, 30 Dec 2020 11:17:36 -0500 Subject: [PATCH] doctor: disable python symlink message --- Library/Homebrew/diagnostic.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 0b9355d580..4a38e1a38c 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -707,20 +707,6 @@ module Homebrew message 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 coreutils = Formula["coreutils"] return unless coreutils.any_version_installed?