virtualenv_install_with_resources: add python@3.8 handling

This commit is contained in:
Alexander Bayandin 2019-12-19 13:27:47 +00:00
parent 08cc557491
commit c92a3d3f84

View File

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