Skip to content

Commit

Permalink
audit: cleanup easy-install check
Browse files Browse the repository at this point in the history
- Python 2 is long gone
- Do not allow to use easy_install at all: it is now long deprecated
  • Loading branch information
iMichka committed Feb 18, 2024
1 parent 5d3fae3 commit 1c9936e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/formula_cellar_checks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ def check_generic_executables(bin)
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}/python{3}*/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
Expand Down

0 comments on commit 1c9936e

Please sign in to comment.