From f9481d4d35ca03706fe0d1885e5c83b89e89966e Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 4 Mar 2020 14:13:41 +0000 Subject: [PATCH] python: Fix error in virtualenv_install_with_resources Fixes #7115. --- Library/Homebrew/language/python.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index edcf52dd08..6a013fab9a 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -172,6 +172,7 @@ module Language wanted = pythons.select { |py| needs_python?(py) } raise FormulaAmbiguousPythonError, self if wanted.size > 1 + python = wanted.first python = "python3" if python == "python" end venv = virtualenv_create(libexec, python.delete("@"))