Merge pull request #7899 from Rylan12/virtualenv-formula-name-split
Separate formula name from tap name in need_python?
This commit is contained in:
commit
d3c4552525
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user