From 132b763242b2e5b96d16f69fb8348f0accc61dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 6 Sep 2023 01:38:58 +0300 Subject: [PATCH] Fix python: detected_python_shebang python pattern "python@" is not a valid dependency, must include something after the "@" --- Library/Homebrew/language/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index 1f6c76c187..cd509d83ae 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -115,7 +115,7 @@ module Language python_path = if use_python_from_path "/usr/bin/env python3" else - python_deps = formula.deps.map(&:name).grep(/^python(@.*)?$/) + python_deps = formula.deps.map(&:name).grep(/^python(@.+)?$/) raise ShebangDetectionError.new("Python", "formula does not depend on Python") if python_deps.empty? if python_deps.length > 1 raise ShebangDetectionError.new("Python", "formula has multiple Python dependencies")