[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9589 - trunk/gnue-common/src/setup
From: |
reinhard |
Subject: |
[gnue] r9589 - trunk/gnue-common/src/setup |
Date: |
Wed, 16 May 2007 01:58:49 -0500 (CDT) |
Author: reinhard
Date: 2007-05-16 01:58:48 -0500 (Wed, 16 May 2007)
New Revision: 9589
Modified:
trunk/gnue-common/src/setup/GSetup.py
Log:
Replaced "print" with "log.*".
Modified: trunk/gnue-common/src/setup/GSetup.py
===================================================================
--- trunk/gnue-common/src/setup/GSetup.py 2007-05-15 13:24:16 UTC (rev
9588)
+++ trunk/gnue-common/src/setup/GSetup.py 2007-05-16 06:58:48 UTC (rev
9589)
@@ -24,6 +24,7 @@
import sys
import string
import os
+from distutils import log
from distutils.core import setup
import distutils.command.sdist
import distutils.command.build
@@ -184,30 +185,30 @@
if os.path.isdir ('po'):
# xgettext
if os.system ("pygettext --version > /dev/null") != 0:
- print "Could not find 'pygettext'. Strange."
- print "It should be included in the Python distribution."
+ log.fatal("Could not find 'pygettext'. Strange.")
+ log.fatal("It should be included in the Python distribution.")
sys.exit (1)
# msgmerge
if os.system ("msgmerge --version > /dev/null") != 0:
- print "Could not find 'msgmerge'. Please install Gettext."
+ log.fatal("Could not find 'msgmerge'. Please install Gettext.")
sys.exit (1)
# msgfmt
if os.system ("msgfmt --version > /dev/null") != 0:
- print "Could not find 'msgfmt'. Please install Gettext."
+ log.fatal("Could not find 'msgfmt'. Please install Gettext.")
sys.exit (1)
# -----------------------------------------------------------------------
if action == 'sdist':
# build ChangeLog file
- print 'building ChangeLog'
+ log.info("building ChangeLog")
ChangeLog.build ()
# build translations
if os.path.isdir ('po'):
- print "building translations"
+ log.info("building translations")
if os.system ("cd po && make gmo") != 0:
sys.exit (1)
@@ -233,10 +234,9 @@
potfile.close()
# build translations
- print "building translations"
+ log.info("building translations")
for f in os.listdir('po'):
if f[-3:] == '.po':
- print f
msgfmt.make ('po/'+f, 'po/'+f[:-3]+'.gmo')
msgfmt.MESSAGES = {}
@@ -251,7 +251,7 @@
def do_build_svnrev (self, filename):
- print "building svnrev.py"
+ log.info("building svnrev.py")
output = open(filename, 'w')
output.write('svnrev = %r' % version.get_svn_revision('src'))
output.close()
@@ -318,7 +318,7 @@
if os.path.isfile (file):
i += 1
else:
- print "warning: did not find file %s" % file
+ log.warn("warning: did not find file %s" % file)
files.remove (file)
# now call setup
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9589 - trunk/gnue-common/src/setup,
reinhard <=