From: Bertrand <bco...@us...> - 2016-06-19 12:32:29
|
Update of /cvsroot/jsbsim/JSBSim/tests In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24143/tests Modified Files: setup.py.in Log Message: Don't output the compiler commands, just the warnings and errors. Index: setup.py.in =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/tests/setup.py.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** setup.py.in 19 Jun 2016 09:26:22 -0000 1.2 --- setup.py.in 19 Jun 2016 12:32:26 -0000 1.3 *************** *** 1,3 **** ! import os.path from distutils.core import setup --- 1,3 ---- ! import os, sys from distutils.core import setup *************** *** 36,39 **** --- 36,51 ---- self.install_dir+self.module_name) + + class SilentBuild(build_ext): + def __init__(self, dist): + build_ext.__init__(self, dist) + self.oldstdout = os.dup(sys.stdout.fileno()) + self.devnull = open('devnull.txt', 'w') + os.dup2(self.devnull.fileno(), sys.stdout.fileno()) + + def __del__(self): + os.dup2(self.oldstdout, sys.stdout.fileno()) + self.devnull.close() + # Installation process for the JSBSim Python module setup( *************** *** 50,56 **** # Build process for the fpectl module ! setup(ext_modules=[Extension('fpectl', ! sources=[os.path.join('${CMAKE_SOURCE_DIR}', ! 'tests', ! 'fpectlmodule.cpp')], ! language='c++')]) --- 62,70 ---- # Build process for the fpectl module ! setup( ! cmdclass={'build_ext': SilentBuild}, ! ext_modules=[Extension('fpectl', ! sources=[os.path.join('${CMAKE_SOURCE_DIR}', ! 'tests', ! 'fpectlmodule.cpp')], ! language='c++')]) |