[gobject-introspection: 1/2] Show commands executed by distutils when being verbose.



commit 21dcef65984fa240c986849b9d202ca32fa1436c
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date:   Fri Feb 16 00:00:00 2018 +0000

    Show commands executed by distutils when being verbose.

 giscanner/scannermain.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index ffcb95cd..8b2f90da 100755
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -494,6 +494,9 @@ def scanner_main(args):
     parser = _get_option_parser()
     (options, args) = parser.parse_args(args)
 
+    if options.verbose:
+        import distutils
+        distutils.log.set_threshold(distutils.log.DEBUG)
     if options.passthrough_gir:
         passthrough_gir(options.passthrough_gir, sys.stdout)
     if options.test_codegen:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]