Merge pull request #12108 from carlocab/venv-bug

This commit is contained in:
Carlo Cabrera 2021-09-22 20:51:32 +08:00 committed by GitHub
commit 461004db30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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?