[mod] try to play with build-depends

This commit is contained in:
Laurent Peuch 2017-08-22 15:52:11 +02:00
parent 26671af385
commit 276b2013fe
2 changed files with 2 additions and 7 deletions

2
debian/control vendored
View file

@ -2,7 +2,7 @@ Source: moulinette
Section: python
Priority: optional
Maintainer: Jérôme Lebleu <jerome.lebleu@mailoo.org>
Build-Depends: debhelper (>= 9), python (>= 2.7), dh-python
Build-Depends: debhelper (>= 9), python (>= 2.7), dh-python, python-all (>= 2.7)
Standards-Version: 3.9.6
X-Python-Version: >= 2.7
Homepage: https://github.com/YunoHost/moulinette

View file

@ -5,6 +5,7 @@ import time
import json
import errno
import logging
import psutil
from importlib import import_module
@ -496,12 +497,6 @@ 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()
if lock_pid is None: