Skip to content

Commit

Permalink
virtualenv_install_with_resources: add python@3.8 handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Dec 19, 2019
1 parent 08cc557 commit c92a3d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/language/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def needs_python?(python)
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"
Expand Down

0 comments on commit c92a3d3

Please sign in to comment.