From 3a8fd43df19b2e35cb9490b57434a655d82c8259 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sun, 18 Feb 2024 15:51:23 +0100 Subject: [PATCH] audit: cleanup easy-install check - Python 2 is long gone - Do not allow to use easy_install at all: it is now long deprecated --- Library/Homebrew/formula_cellar_checks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 58831e49fa..a2bac0c487 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -131,13 +131,13 @@ module FormulaCellarChecks end def check_easy_install_pth(lib) - pth_found = Dir["#{lib}/python{2.7,3}*/site-packages/easy-install.pth"].map { |f| File.dirname(f) } + pth_found = Dir["#{lib}/python3*/site-packages/easy-install.pth"].map { |f| File.dirname(f) } return if pth_found.empty? <<~EOS 'easy-install.pth' files were found. These '.pth' files are likely to cause link conflicts. - Please invoke `setup.py` using 'Language::Python.setup_install_args'. + Easy install is now deprecated, do not use it. The offending files are: #{pth_found * "\n "} EOS