Merge pull request #16698 from iMichka/py2

audit: cleanup easy-install check
This commit is contained in:
Mike McQuaid 2024-02-19 13:54:28 +00:00 committed by GitHub
commit b1fe90710e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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