cpplint: skip it if waf can't import the module

This commit is contained in:
Syl 2014-02-15 13:04:44 +01:00
parent ab108c002d
commit 67eebf06a0
1 changed files with 4 additions and 3 deletions

View File

@ -95,10 +95,11 @@ def options(opt):
def configure(conf):
conf.start_msg('Checking cpplint')
try:
import cpplint
import cpplnt
conf.end_msg('ok')
except ImportError:
conf.fatal('cpplint not found. try "pip install cpplint".')
conf.end_msg('ok')
conf.env.CPPLINT_SKIP = True
conf.end_msg('not found, skipping it.')
class cpplint_formatter(Logs.formatter):