aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build_scripts/setup_runner.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/build_scripts/setup_runner.py b/build_scripts/setup_runner.py
index ddf98fef0..5e0b2b486 100644
--- a/build_scripts/setup_runner.py
+++ b/build_scripts/setup_runner.py
@@ -116,6 +116,18 @@ class SetupRunner(object):
setup_script_dir=self.setup_script_dir,
quiet=OPTION["QUIET"])
+ # Enable logging for both the top-level invocation of setup.py
+ # as well as for child invocations. We we now use
+ # setuptools._distutils.log instead of distutils.log, and this
+ # new log object does not have its verbosity set by default
+ # when setuptools instantiates a distutils Distribution object,
+ # which calls
+ # dist.parse_command_line() -> log.set_verbosity(self.verbose)
+ # on the old distutils log object.
+ # So we do it explicitly here.
+ if not OPTION["QUIET"]:
+ log.set_verbosity(log.INFO)
+
# This is an internal invocation of setup.py, so start actual
# build.
if config.is_internal_invocation():
@@ -125,10 +137,6 @@ class SetupRunner(object):
self.run_setuptools_setup()
return
- # Enable logging.
- if not OPTION["QUIET"]:
- log.set_verbosity(log.INFO)
-
# This is a top-level invocation of setup.py, so figure out what
# modules we will build and depending on that, call setup.py
# multiple times with different arguments.