mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-07 04:40:00 +08:00
依赖添加方式暂时切换为uv pip install (#2130)
This commit is contained in:
@@ -728,6 +728,8 @@ async def _check_matcher_prefilter(
|
||||
if ai_route_modules and module not in ai_route_modules:
|
||||
if not _matcher_matches_ai_route_heads(matcher_cls, ai_route_heads):
|
||||
return True, "route_miss"
|
||||
elif ai_route_modules:
|
||||
return False, None
|
||||
|
||||
if not _ROUTE_INDEX_READY:
|
||||
await _ensure_route_index()
|
||||
@@ -797,6 +799,8 @@ def _check_matcher_prefilter_before_task(
|
||||
if ai_route_modules and module not in ai_route_modules:
|
||||
if not _matcher_matches_ai_route_heads(matcher_cls, ai_route_heads):
|
||||
return True, "route_miss"
|
||||
elif ai_route_modules:
|
||||
return False, None
|
||||
|
||||
if not _ROUTE_INDEX_READY:
|
||||
return False, None
|
||||
|
||||
@@ -383,7 +383,7 @@ class StoreManager:
|
||||
requirement_file = target_dir / requirement_path.path
|
||||
if requirement_file.exists():
|
||||
is_install_req = True
|
||||
await VirtualEnvPackageManager.add_requirement(requirement_file)
|
||||
await VirtualEnvPackageManager.install_requirement(requirement_file)
|
||||
|
||||
if not is_install_req:
|
||||
# 从仓库根目录查找文件
|
||||
@@ -404,13 +404,13 @@ class StoreManager:
|
||||
f"开始安装插件 {module_path} 依赖文件: {requirement_path}",
|
||||
LOG_COMMAND,
|
||||
)
|
||||
await VirtualEnvPackageManager.add_requirement(requirement_path)
|
||||
await VirtualEnvPackageManager.install_requirement(requirement_path)
|
||||
if requirements_path.exists():
|
||||
logger.info(
|
||||
f"开始安装插件 {module_path} 依赖文件: {requirements_path}",
|
||||
LOG_COMMAND,
|
||||
)
|
||||
await VirtualEnvPackageManager.add_requirement(requirements_path)
|
||||
await VirtualEnvPackageManager.install_requirement(requirements_path)
|
||||
|
||||
@classmethod
|
||||
async def remove_plugin(cls, index_or_module: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user