🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.dev
Article #103

[gentoo-dev] [PATCH] distutils-r1.eclass: Fix wheel tag check for pp312 tags

#103
From: Michał Górny
Date: Thu, 05 Nov 2026 16:40
34 lines
2480 bytes
Closes: https://bugs.gentoo.org/985679
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
 eclass/distutils-r1.eclass | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 3e024f582600a..3ecc3561e116c 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1233,18 +1233,20 @@ _distutils-r1_find_best_wheel() {
 		whl_fn=${whl_fn%-*}
 		local python_tag=${whl_fn##*-}
 
-		# Verify whether the Python tag is compatible.  We should
+		# Verify that the tags we're getting are incrementing, to make
+		# sure the matching logic below won't break.  We should
 		# be running from the oldest to the newest Python version,
 		# so it should always hold.  We short-circuit py3 tag.
 		if [[ .${python_tag}. != *.py3.* ]]; then
-			[[ ${EPYTHON} != python3.* ]] &&
+			[[ ${EPYTHON} != python3.* && ${EPYTHON} != pypy3.* ]] &&
 				die "Update the python_tag check for ${EPYTHON}"
-			local minor=${EPYTHON#python3.}
+			local minor=${EPYTHON#py*3.}
 			minor=${minor%t}
 			local is_compatible=
 			while [[ ${minor} -ge 0 ]]; do
 				if [[
 					.${python_tag}. == *.cp3${minor}.* ||
+					.${python_tag}. == *.pp3${minor}.* ||
 					.${python_tag}. == *.py3${minor}.*
 				]]; then
 					is_compatible=1
Technical Details
Message-ID: <NW8Fj-a1o5-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Michał Górny <mgorny@gentoo.org>
Newsgroups: linux.gentoo.dev
Subject: [gentoo-dev] [PATCH] distutils-r1.eclass: Fix wheel tag check for pp312 tags
Date: Thu, 05 Nov 2026 17:40:01 +0100
Message-ID: <NW8Fj-a1o5-9@gated-at.bofh.it>
X-Original-To: gentoo-dev@lists.gentoo.org
X-Mailer: git-send-email 2.56.0
List-ID: Gentoo Linux mail <gentoo-dev.gentoo.org>
Reply-To: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Approved: robomod@news.nic.it
Lines: 34
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: Michał Górny <mgorny@gentoo.org>
X-Original-Date: Thu,  5 Nov 2026 17:31:16 +0100
X-Original-Message-ID: <20261105163116.584740-1-mgorny@gentoo.org>