From 840aa567ea76774a256db980eafa7c0d6dd87d66 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 13 Apr 2026 02:01:51 +0000 Subject: [PATCH] Added and updated repositories 2026-04-13 02:01:51 --- Fixyres/FModules/FHeta.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Fixyres/FModules/FHeta.py b/Fixyres/FModules/FHeta.py index ab706ae..5100682 100644 --- a/Fixyres/FModules/FHeta.py +++ b/Fixyres/FModules/FHeta.py @@ -100,18 +100,6 @@ class MInstaller: return "dependency", [] - async def pip(self, dependencies: List[str]) -> bool: - virtualenv = hasattr(sys, 'real_prefix') or sys.prefix != getattr(sys, 'base_prefix', sys.prefix) - flags = ["--user"] if loader.USER_INSTALL and not virtualenv else [] - - process = await asyncio.create_subprocess_exec( - sys.executable, "-m", "pip", "install", "-U", "-q", - "--disable-pip-version-check", "--no-warn-script-location", - *flags, *dependencies - ) - - return await process.wait() == 0 - async def load(self, plugin: 'loader.Module', code: str, origin: str, step: int) -> Union[str, List[str]]: if step == 0: try: @@ -121,7 +109,7 @@ class MInstaller: )) if dependencies: - if not await self.pip(dependencies): + if not await plugin.install_requirements(dependencies): return dependencies importlib.invalidate_caches() return "retry" @@ -171,7 +159,7 @@ class MInstaller: alternative = {"sklearn": "scikit-learn", "pil": "Pillow", "herokutl": "Heroku-TL-New"}.get(exception.name.lower(), exception.name) dependencies = [alternative] - if not alternative or not await self.pip(dependencies): + if not alternative or not await plugin.install_requirements(dependencies): return dependencies importlib.invalidate_caches()