From 60f72fffdf7a9bb8034880777adb311d950f881f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 2 Jan 2023 20:32:00 +0100 Subject: [PATCH] [core] Fix installing ltchiptool, again --- platform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform.py b/platform.py index e236fae..8e4f0cd 100644 --- a/platform.py +++ b/platform.py @@ -23,7 +23,9 @@ def check_ltchiptool(install: bool): if install: # update ltchiptool to a supported version print("Installing/updating ltchiptool") - system(f"{sys.executable} -m pip install -U ltchiptool=={LTCHIPTOOL_VERSION}") + system( + f'{sys.executable} -m pip install -U "ltchiptool >= {LTCHIPTOOL_VERSION}, < 3.0"' + ) # unload all modules from the old version for name, module in list(sorted(sys.modules.items())):