[core] Fix installing ltchiptool, again

This commit is contained in:
Kuba Szczodrzyński
2023-01-02 20:32:00 +01:00
parent 77af9c1cba
commit 60f72fffdf

View File

@@ -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())):