Skip to content

Commit 4bea910

Browse files
Mikachu2333ccmywish
authored andcommitted
fix
1 parent 14be64f commit 4bea910

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/recipe/lang/Python/common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ pl_python_speed_url_constructor (const char *url, const char *user_data)
1818
{
1919
char *str = xy_str_delete_suffix (url, "/simple");
2020
str = xy_2strcat (str, "/packages/fa/80/eb88edc2e2b11cd2dd2e56f1c80b5784d11d6e6b7f04a1145df64df40065/opencv_python-4.12.0.88-cp37-abi3-win_amd64.whl");
21-
str = xy_str_gsub (str, "pypi-packages/packages", "pypi-packages");// 针对 Sjtug
21+
if (strstr (url, "mirror.sjtu.edu.cn"))
22+
str = xy_str_gsub (str, "pypi-packages/packages", "pypi-packages");// 针对 Sjtug
23+
2224
return str;
2325
}
2426

0 commit comments

Comments
 (0)