From 005fa142546b93793a2b0c64e878d02a4c0ffdd8 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 24 Aug 2024 18:40:25 +0900 Subject: [PATCH] fix: execute_install_script - missing pip install except first pip item in requirements.txt --- glob/manager_core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index c24249e6..4523bc5d 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -731,6 +731,7 @@ class UnifiedManager: else: if os.path.exists(requirements_path) and not no_deps: print("Install: pip packages") + res = True with open(requirements_path, "r") as requirements_file: for line in requirements_file: package_name = remap_pip_package(line.strip()) @@ -738,7 +739,8 @@ class UnifiedManager: self.processed_install.add(package_name) install_cmd = [sys.executable, "-m", "pip", "install", package_name] if package_name.strip() != "" and not package_name.startswith('#'): - return try_install_script(url, repo_path, install_cmd, instant_execution=instant_execution) + res = res and try_install_script(url, repo_path, install_cmd, instant_execution=instant_execution) + return res if os.path.exists(install_script_path) and install_script_path not in self.processed_install: self.processed_install.add(install_script_path)