From e565e8c0ce1ae2e719ce152d992ded7d89d293c9 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Mon, 2 Dec 2024 20:23:13 +0000 Subject: [PATCH] fix: constraints.txt from url closes #596 --- ovos_core/skill_installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ovos_core/skill_installer.py b/ovos_core/skill_installer.py index de847d25832..6a556da5244 100644 --- a/ovos_core/skill_installer.py +++ b/ovos_core/skill_installer.py @@ -22,7 +22,7 @@ class InstallError(str, enum.Enum): class SkillsStore: # default constraints to use if none are given - DEFAULT_CONSTRAINTS = '/etc/mycroft/constraints.txt' # TODO XDG paths, keep backwards compat for now with msm/osm + DEFAULT_CONSTRAINTS = 'https://raw.githubusercontent.com/OpenVoiceOS/ovos-releases/refs/heads/main/constraints-stable.txt' PIP_LOCK = NamedLock("ovos_pip.lock") def __init__(self, bus, config=None): @@ -56,8 +56,8 @@ def pip_install(self, packages: list, LOG.error('Couldn\'t find the constraints file') self.play_error_sound() return False - elif exists(SkillsStore.DEFAULT_CONSTRAINTS): - constraints = SkillsStore.DEFAULT_CONSTRAINTS + else: + constraints = self.config.get("constraints", SkillsStore.DEFAULT_CONSTRAINTS) pip_args = [sys.executable, '-m', 'pip', 'install'] if constraints: