From a7a9793f9974c0f2b4535bef20f6cf02325f6f93 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Fri, 3 Jul 2020 16:37:32 -0400 Subject: [PATCH] needs_python? separate formula name from tap name --- Library/Homebrew/language/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index 581ee82ac0289..a80dd1bd89142 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -167,7 +167,7 @@ def virtualenv_create(venv_root, python = "python", formula = self) 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.