Issue #15591: run ctypes' configure in quiet mode when setup.py runs silently

This commit is contained in:
Christian Heimes 2012-09-06 18:03:32 +02:00
commit 6d1fb5aa85
1 changed files with 2 additions and 0 deletions

View File

@ -1788,6 +1788,8 @@ class PyBuildExt(build_ext):
mkpath(ffi_builddir)
config_args = [arg for arg in sysconfig.get_config_var("CONFIG_ARGS").split()
if (('--host=' in arg) or ('--build=' in arg))]
if not self.verbose:
config_args.append("-q")
# Pass empty CFLAGS because we'll just append the resulting
# CFLAGS to Python's; -g or -O2 is to be avoided.