Skip to content

Commit

Permalink
fix: constraints.txt from url
Browse files Browse the repository at this point in the history
closes #596
  • Loading branch information
JarbasAl authored Dec 2, 2024
1 parent c19d2f8 commit e565e8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ovos_core/skill_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e565e8c

Please sign in to comment.