mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-03-02 18:48:04 +01:00
MycroftOS: Remove sudo pip logic from Mycroft Skill Manager.
This commit is contained in:
parent
5ad87b9171
commit
26b3575045
@ -0,0 +1,31 @@
|
||||
From 4b856bbe555578f24d625b4e9e8297857ad55f92 Mon Sep 17 00:00:00 2001
|
||||
From: j1nx <p.steenbergen@j1nx.nl>
|
||||
Date: Tue, 25 Aug 2020 11:04:44 +0200
|
||||
Subject: [PATCH 1/1] Remove "sudo" pip logic
|
||||
|
||||
---
|
||||
msm/skill_entry.py | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/msm/skill_entry.py b/msm/skill_entry.py
|
||||
index 3170656..a50c732 100644
|
||||
--- a/msm/skill_entry.py
|
||||
+++ b/msm/skill_entry.py
|
||||
@@ -295,14 +295,10 @@ class SkillEntry(object):
|
||||
constraints = DEFAULT_CONSTRAINTS
|
||||
|
||||
LOG.info('Installing requirements.txt for ' + self.name)
|
||||
- can_pip = os.access(dirname(sys.executable), os.W_OK | os.X_OK)
|
||||
pip_args = [sys.executable, '-m', 'pip', 'install']
|
||||
if constraints:
|
||||
pip_args += ['-c', constraints]
|
||||
|
||||
- if not can_pip:
|
||||
- pip_args = ['sudo', '-n'] + pip_args
|
||||
-
|
||||
with self.pip_lock:
|
||||
"""
|
||||
Iterate over the individual Python packages and
|
||||
--
|
||||
2.20.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user