python: Fix error in virtualenv_install_with_resources

Fixes #7115.
This commit is contained in:
Bo Anderson 2020-03-04 14:13:41 +00:00
parent c42d43c824
commit f9481d4d35

View File

@ -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("@"))