2020-09-14 16:45:29 +02:00
|
|
|
From 89782d56ed0fa1b63fef350520abea59c79bf283 Mon Sep 17 00:00:00 2001
|
2020-08-25 12:55:09 +02:00
|
|
|
From: j1nx <p.steenbergen@j1nx.nl>
|
2020-09-14 16:45:29 +02:00
|
|
|
Date: Mon, 14 Sep 2020 16:38:58 +0200
|
|
|
|
Subject: [PATCH 1/1] Remove "sudo" pip logic and change to --user by default
|
2020-08-25 12:55:09 +02:00
|
|
|
|
|
|
|
---
|
2020-09-14 16:45:29 +02:00
|
|
|
msm/skill_entry.py | 6 +-----
|
|
|
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
2020-08-25 12:55:09 +02:00
|
|
|
|
|
|
|
diff --git a/msm/skill_entry.py b/msm/skill_entry.py
|
2020-09-14 16:45:29 +02:00
|
|
|
index 3170656..ec78609 100644
|
2020-08-25 12:55:09 +02:00
|
|
|
--- 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)
|
2020-09-14 16:45:29 +02:00
|
|
|
- pip_args = [sys.executable, '-m', 'pip', 'install']
|
|
|
|
+ pip_args = [sys.executable, '-m', 'pip', 'install', '--user']
|
2020-08-25 12:55:09 +02:00
|
|
|
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
|
|
|
|
|