language/python: allow python@3.7 to be used for virtualenvs

This commit is contained in:
Bo Anderson 2020-07-09 15:31:53 +01:00
parent 50d12ce900
commit f01d264c3c

View File

@ -180,7 +180,7 @@ module Language
def virtualenv_install_with_resources(options = {})
python = options[:using]
if python.nil?
pythons = %w[python python3 python@3 python@3.8 pypy pypy3]
pythons = %w[python python3 python@3 python@3.7 python@3.8 pypy pypy3]
wanted = pythons.select { |py| needs_python?(py) }
raise FormulaAmbiguousPythonError, self if wanted.size > 1