From dc589edd6f3faa94c6cbaf66c2caadff51cfbe5a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 30 Mar 2012 16:43:50 +0100 Subject: Change detect_build_system to not default to manual We do not want a manual build system if there is no morphology, since building with a no-op manual build system just hides the fact that the chunk can't be built because a morphology is missing. --- morphlib/buildsystem.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'morphlib/buildsystem.py') diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py index 8b71a640..a048d881 100644 --- a/morphlib/buildsystem.py +++ b/morphlib/buildsystem.py @@ -129,16 +129,14 @@ build_systems = [ def detect_build_system(srcdir): '''Automatically detect the build system, if possible. - If the build system cannot be detected automatically, then the manual - build system is used instead. + If the build system cannot be detected automatically, return None. ''' for bs in build_systems: if bs.used_by_project(srcdir): return bs - return ManualBuildSystem() - + return None def lookup_build_system(name): -- cgit v1.2.1