summaryrefslogtreecommitdiff
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-05-21 16:17:03 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-21 16:17:03 +0000
commitd33ef936c3c4673112d0fa91a3d9e507b97be663 (patch)
tree6c2daa2564425b926004f75dbf65be14d03a7fbe /classes/sanity.bbclass
parent600044a2b11ab53bdf73e7e33cf193fea91a35ad (diff)
sanity.bbclass: make it work even when distutils is not available
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 8253b27930..a06753b198 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -31,7 +31,10 @@ def check_app_exists(app, d):
def check_sanity(e):
from bb import note, error, data, __version__
from bb.event import Handled, NotHandled, getName
- from distutils.version import LooseVersion
+ try:
+ from distutils.version import LooseVersion
+ except ImportError:
+ def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
import os
# Check the bitbake version meets minimum requirements