From: Christian Heimes Date: Thu, 6 Sep 2012 16:03:32 +0000 (+0200) Subject: Issue #15591: run ctypes' configure in quiet mode when setup.py runs silently X-Git-Tag: v3.3.1rc1~818^2^2~136 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d1fb5aa85fd69099f1e7787d6c7b3c4b117de3a;p=thirdparty%2FPython%2Fcpython.git Issue #15591: run ctypes' configure in quiet mode when setup.py runs silently --- 6d1fb5aa85fd69099f1e7787d6c7b3c4b117de3a diff --cc setup.py index 9ddf2e9add3b,10ce79e29c23..d60967aaf79b --- a/setup.py +++ b/setup.py @@@ -1786,8 -1674,9 +1786,10 @@@ class PyBuildExt(build_ext) ffi_configfile): from distutils.dir_util import mkpath mkpath(ffi_builddir) - config_args = [] + 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.