[fix] bad hack to handle the limitation of our buildchain

This commit is contained in:
Laurent Peuch 2017-08-20 03:48:20 +02:00
parent df4c435f85
commit c73cca3f40

View file

@ -5,7 +5,6 @@ import time
import json
import errno
import logging
import psutil
from importlib import import_module
@ -497,6 +496,11 @@ class MoulinetteLock(object):
return lock_pid
def _is_son_of_locked(self):
# this is here and not at the beginning of the file to fix a bug in our
# debian build toolchain because it doesn't handle additional
# dependancies during the guilde and core.py is indirectly imported by
# setup.py
import psutil
lock_pid = self._lock_PID()