From 81119a58936ae2f94e1d9016faa2acce167a8ff3 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Mon, 27 Jan 2025 18:46:19 +0530 Subject: [PATCH] Skip sdkit/diffusers install if it's in developer mode --- scripts/check_modules.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/check_modules.py b/scripts/check_modules.py index 07c80566..2bdd3491 100644 --- a/scripts/check_modules.py +++ b/scripts/check_modules.py @@ -258,6 +258,10 @@ def _install(module_name, module_version=None): def install_pkg_if_necessary(pkg_name, required_version): + if os.path.exists(f"src/{pkg_name}"): + print(f"Skipping {pkg_name} update, since it's in developer/editable mode") + return + pkg_version = version(pkg_name) if pkg_version != required_version: _install(pkg_name, required_version)