Merge pull request #7899 from Rylan12/virtualenv-formula-name-split

Separate formula name from tap name in need_python?
This commit is contained in:
Mike McQuaid 2020-07-04 14:38:35 +01:00 committed by GitHub
commit d3c4552525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ module Language
def needs_python?(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
# Helper method for the common case of installing a Python application.