From 9fda7e34f15807784a0c15f7073a2e91cd85878d Mon Sep 17 00:00:00 2001 From: Ruonan Wang <105281011+rnwang04@users.noreply.github.com> Date: Thu, 15 Jun 2023 15:18:50 +0800 Subject: [PATCH] LLM: fix version control (#8342) --- python/llm/setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/llm/setup.py b/python/llm/setup.py index 655ac103..59066f11 100644 --- a/python/llm/setup.py +++ b/python/llm/setup.py @@ -99,7 +99,9 @@ def obtain_lib_urls(): for binary in binarys: if binary in binary_url: continue - if binary in text: + # Filename hard matching + match_pattern = "\"name\":\"{}\"".format(binary) + if match_pattern in text: lib_url = url + binary binary_url[binary] = lib_url download_num -= 1