From 797c77761a120ba5ded4e8f870462800db1f0eca Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 22 Sep 2021 20:30:32 +0800 Subject: [PATCH] language/python: bug fix Fixes a bug introduced in 09570fc7a66af8c43626a869888ebc484745c587. --- 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 b1290684d2..e2dbd22d15 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -175,6 +175,7 @@ module Language # case where it's not clear whether python or python@x.y should be the # default guess. def virtualenv_install_with_resources(using: nil, system_site_packages: true) + python = using if python.nil? wanted = python_names.select { |py| needs_python?(py) } raise FormulaUnknownPythonError, self if wanted.empty?