[Python-checkins] CVS: distutils/distutils ccompiler.py,1.30,1.31

Greg Ward python-dev@python.org
Tue, 1 Aug 2000 18:38:23 -0700


Update of /cvsroot/python/distutils/distutils
In directory slayer.i.sourceforge.net:/tmp/cvs-serv12580

Modified Files:
	ccompiler.py 
Log Message:
Added 'execute()' method, a thin wrapper around 'util.execute() (just like
the one in cmd.py).

Index: ccompiler.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/ccompiler.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -r1.30 -r1.31
*** ccompiler.py	2000/07/27 02:13:19	1.30
--- ccompiler.py	2000/08/02 01:38:20	1.31
***************
*** 16,20 ****
  from distutils.dir_util import mkpath
  from distutils.dep_util import newer_pairwise, newer_group
! from distutils.util import split_quoted
  
  
--- 16,20 ----
  from distutils.dir_util import mkpath
  from distutils.dep_util import newer_pairwise, newer_group
! from distutils.util import split_quoted, execute
  
  
***************
*** 784,787 ****
--- 784,790 ----
      def warn (self, msg):
          sys.stderr.write ("warning: %s\n" % msg)
+ 
+     def execute (self, func, args, msg=None, level=1):
+         execute(func, args, msg, self.verbose >= level, self.dry_run)
  
      def spawn (self, cmd):