Merge pull request #6858 from bayandin/patch-1

Add python@3.8 handling to virtualenv_install_with_resources
This commit is contained in:
Mike McQuaid 2019-12-19 17:39:26 +00:00 committed by GitHub
commit 8c0229a3ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"