]> granicus.if.org Git - python/commitdiff
Issue #15591: run ctypes' configure in quiet mode when setup.py runs silently
authorChristian Heimes <christian@cheimes.de>
Thu, 6 Sep 2012 16:03:32 +0000 (18:03 +0200)
committerChristian Heimes <christian@cheimes.de>
Thu, 6 Sep 2012 16:03:32 +0000 (18:03 +0200)
1  2 
setup.py

diff --cc setup.py
index 9ddf2e9add3bda114029645216cc2a5257df1873,10ce79e29c23eecb919d2c42afc1533b221b83f4..d60967aaf79bfbe2f30d0f54bdb68436484e2139
+++ 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.