From 776fec7f6ba30d1f33f3c71f89e070ddbfbb5ed8 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 9 Mar 2018 13:45:30 -0800 Subject: [PATCH] virtualenv_install_with_resources: invoke python with versioned name. The unversioned python executable no longer refers to python3. --- Library/Homebrew/language/python.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index 903e1317d5..de373efda4 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -135,9 +135,10 @@ module Language def virtualenv_install_with_resources(options = {}) python = options[:using] if python.nil? - wanted = %w[python python@2 python2 python3].select { |py| needs_python?(py) } + wanted = %w[python python@2 python2 python3 python@3].select { |py| needs_python?(py) } raise FormulaAmbiguousPythonError, self if wanted.size > 1 - python = wanted.first || "python" + python = wanted.first || "python2.7" + python = "python3" if python == "python" end venv = virtualenv_create(libexec, python.delete("@")) venv.pip_install resources