Merge pull request #612 from tfmoraes/buildtag

Some wheels have build tag with more than one digit
This commit is contained in:
adisbladis 2022-05-05 12:17:13 +07:00 committed by GitHub
commit 9927a08fd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,9 @@ let
let
entries' = splitString "-" str;
# Hack: Remove version "suffixes" like 2.11.4-1
entries = builtins.filter (x: builtins.match "[0-9]" x == null) entries';
# Some wheels have build tag with more than one digit
# like openvino-2022.1.0-7019-cp36-cp36m-manylinux_2_27_x86_64.whl
entries = builtins.filter (x: builtins.match "[0-9]*" x == null) entries';
p = removeSuffix ".whl" (builtins.elemAt entries 4);
in
{