[Python-checkins] distutils2: Replace spurious output with logging (not configurable yet)

tarek.ziade python-checkins at python.org
Sun Jul 4 11:48:40 CEST 2010


tarek.ziade pushed 735e8a8d7431 to distutils2:

http://hg.python.org/distutils2/rev/735e8a8d7431
changeset:   339:735e8a8d7431
user:        ?ric Araujo <merwok at netwok.org>
date:        Thu Jul 01 19:22:58 2010 +0200
summary:     Replace spurious output with logging (not configurable yet)
files:       src/setup.py

diff --git a/src/setup.py b/src/setup.py
--- a/src/setup.py
+++ b/src/setup.py
@@ -5,11 +5,12 @@
 import os
 import re
 
+from distutils2 import __version__ as VERSION
+from distutils2 import log
 from distutils2.core import setup, Extension
 from distutils2.compiler.ccompiler import new_compiler
 from distutils2.command.sdist import sdist
 from distutils2.command.install import install
-from distutils2 import __version__ as VERSION
 from distutils2.util import find_packages
 
 f = open('README.txt')
@@ -161,9 +162,9 @@
 
     if (ssl_inc_dir and ssl_lib is not None and openssl_ver >= 0x00907000):
 
-        print 'Using OpenSSL version 0x%08x from' % openssl_ver
-        print ' Headers:\t', ssl_inc_dir
-        print ' Library:\t', ssl_lib
+        log.info('Using OpenSSL version 0x%08x from', openssl_ver)
+        log.info(' Headers:\t%s', ssl_inc_dir)
+        log.info(' Library:\t%s', ssl_lib)
 
         # The _hashlib module wraps optimized implementations
         # of hash functions from the OpenSSL library.

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list