keg: comment to odeprecated some Python 2 related methods

Signed-off-by: Michael Cho <michael@michaelcho.dev>
This commit is contained in:
Michael Cho 2024-04-14 19:58:16 -04:00
parent 9edabf02ce
commit 060fb92527
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -362,11 +362,13 @@ class Keg
end
def python_site_packages_installed?
# odeprecated "Keg#python_site_packages_installed?"
(path/"lib/python2.7/site-packages").directory?
end
sig { returns(T::Boolean) }
def python_pth_files_installed?
# odeprecated "Keg#python_pth_files_installed?"
!Dir["#{path}/lib/python2.7/site-packages/*.pth"].empty?
end