From e8f4a8e1a783c8814d825beefe9f396faeabdd36 Mon Sep 17 00:00:00 2001 From: Dustin Rodrigues Date: Tue, 10 Jun 2025 00:49:11 -0400 Subject: [PATCH] utils/pypi: further update pure Python wheel detection --- Library/Homebrew/utils/pypi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/pypi.rb b/Library/Homebrew/utils/pypi.rb index 60e929a94a..30bb3b30b8 100644 --- a/Library/Homebrew/utils/pypi.rb +++ b/Library/Homebrew/utils/pypi.rb @@ -85,7 +85,7 @@ module PyPI # If there isn't an sdist, we use the first pure Python3 or universal wheel if dist.nil? dist = json["urls"].find do |url| - url["filename"].match?("py3.*-none-any.whl$") + url["filename"].match?("[.-]py3[^-]*-none-any\.whl$") end end