modules/python: normalize output for disabled by feature

Instead of printing a message about how python was skipped, print the
normal 'Program foo found:' message, with a "disabled by feature"
message added.
pull/5205/head
Dylan Baker 6 years ago
parent de48e887b8
commit a710b83a67
  1. 2
      mesonbuild/modules/python.py

@ -509,7 +509,7 @@ class PythonModule(ExtensionModule):
raise InvalidArguments('find_installation argument must be a string.')
if disabled:
mlog.log('find_installation skipped: feature', mlog.bold(feature), 'disabled')
mlog.log('Program', name_or_path or 'python', 'found:', mlog.red('NO'), '(disabled by:', mlog.bold(feature), ')')
return ExternalProgramHolder(NonExistingExternalProgram())
if not name_or_path:

Loading…
Cancel
Save