diff roundup/dist/command/build_scripts.py @ 5023:5e2888db6c48 pip

build_scripts: self.announce --> log.info because it is visible
author anatoly techtonik <techtonik@gmail.com>
date Mon, 11 Jan 2016 14:43:20 +0300
parents 9250620c7219
children 64c4e43fbb84
line wrap: on
line diff
--- a/roundup/dist/command/build_scripts.py	Mon Jan 11 01:28:45 2016 +0300
+++ b/roundup/dist/command/build_scripts.py	Mon Jan 11 14:43:20 2016 +0300
@@ -4,6 +4,7 @@
 # For license terms see the file COPYING.txt.
 #
 from distutils.command.build_scripts import build_scripts as base
+from distutils import log
 import sys, os, string
 
 class build_scripts(base):
@@ -106,7 +107,7 @@
             #    continue
 
             if self.dry_run:
-                self.announce("would create %s" % outfile)
+                log.info("would create %s" % outfile)
                 continue
 
             module = os.path.splitext(os.path.basename(script))[0]
@@ -118,7 +119,7 @@
                 'prefix': self.script_preamble,
             }
 
-            self.announce("creating %s" % outfile)
+            log.info("writing %s" % outfile)
             file = open(outfile, 'w')
 
             try:

Roundup Issue Tracker: http://roundup-tracker.org/