From 653ca59edf8d4376754afbbd7b372537606e4362 Mon Sep 17 00:00:00 2001 From: "Denis Bilenko (aider)" Date: Tue, 4 Mar 2025 17:48:57 +0100 Subject: [PATCH] (no commit message provided) --- libs/patchwheel/parse.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/patchwheel/parse.go b/libs/patchwheel/parse.go index 2967c41c3..3982d617c 100644 --- a/libs/patchwheel/parse.go +++ b/libs/patchwheel/parse.go @@ -43,7 +43,7 @@ func ParseWheelFilename(filename string) (*WheelInfo, error) { return nil, fmt.Errorf("invalid wheel filename format: missing .whl extension in %s", filename) } - // The last three parts are always tags + // The last three parts are always the python, abi and platform tags tagStartIdx := len(parts) - 3 tags := parts[tagStartIdx:] tags[2] = strings.TrimSuffix(tags[2], ".whl") @@ -54,6 +54,12 @@ func ParseWheelFilename(filename string) (*WheelInfo, error) { // The version is the second part - don't include build tags version := parts[1] + // If there are build tags between version and python tag, include them in tags + if tagStartIdx > 2 { + buildTags := parts[2:tagStartIdx] + tags = append(buildTags, tags...) + } + return &WheelInfo{ Distribution: distribution, Version: version,