Thread View: linux.gentoo.dev
1 messages
1 total messages
Started by Michał Górny
Thu, 05 Nov 2026 16:40
[gentoo-dev] [PATCH] distutils-r1.eclass: Fix wheel tag check for pp312 tags
Author: Michał Górny
Date: Thu, 05 Nov 2026 16:40
Date: Thu, 05 Nov 2026 16:40
34 lines
2480 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads