From a710b83a677428e4cef29e86aead7f66ee8d183d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 3 Apr 2019 09:13:55 -0700 Subject: 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. --- mesonbuild/modules/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/modules/python.py') diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py index 027d0f7..bd69244 100644 --- a/mesonbuild/modules/python.py +++ b/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: -- cgit v1.1