mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Avoid setuptools install time error
This commit is contained in:
parent
815ca415c6
commit
93aebe4216
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,6 @@ import os
|
|||
import time
|
||||
import json
|
||||
import logging
|
||||
import psutil
|
||||
|
||||
from importlib import import_module
|
||||
|
||||
|
@ -525,6 +524,10 @@ class MoulinetteLock(object):
|
|||
return lock_pids
|
||||
|
||||
def _is_son_of(self, lock_pids):
|
||||
# in order to avoid a setuptools installation issue which fails at
|
||||
# installation time, we only import psutil when appropriate and not
|
||||
# globally at the module level
|
||||
import psutil
|
||||
|
||||
if lock_pids == []:
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue