Merge pull request #7116 from Bo98/python

python: Fix error in virtualenv_install_with_resources
This commit is contained in:
Mike McQuaid 2020-03-04 14:35:48 +00:00 committed by GitHub
commit 98935fd777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,6 +172,7 @@ module Language
wanted = pythons.select { |py| needs_python?(py) } wanted = pythons.select { |py| needs_python?(py) }
raise FormulaAmbiguousPythonError, self if wanted.size > 1 raise FormulaAmbiguousPythonError, self if wanted.size > 1
python = wanted.first
python = "python3" if python == "python" python = "python3" if python == "python"
end end
venv = virtualenv_create(libexec, python.delete("@")) venv = virtualenv_create(libexec, python.delete("@"))