needs_python? separate formula name from tap name

This commit is contained in:
Rylan Polster 2020-07-03 16:37:32 -04:00
parent 505c1e7240
commit a7a9793f99

View File

@ -167,7 +167,7 @@ module Language
def needs_python?(python) def needs_python?(python)
return true if build.with?(python) return true if build.with?(python)
(requirements.to_a | deps).any? { |r| r.name == python && r.required? } (requirements.to_a | deps).any? { |r| r.name.split("/").last == python && r.required? }
end end
# Helper method for the common case of installing a Python application. # Helper method for the common case of installing a Python application.