Merge pull request #16698 from iMichka/py2
audit: cleanup easy-install check
This commit is contained in:
commit
b1fe90710e
@ -131,13 +131,13 @@ module FormulaCellarChecks
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_easy_install_pth(lib)
|
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?
|
return if pth_found.empty?
|
||||||
|
|
||||||
<<~EOS
|
<<~EOS
|
||||||
'easy-install.pth' files were found.
|
'easy-install.pth' files were found.
|
||||||
These '.pth' files are likely to cause link conflicts.
|
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:
|
The offending files are:
|
||||||
#{pth_found * "\n "}
|
#{pth_found * "\n "}
|
||||||
EOS
|
EOS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user