summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-05-28 17:47:47 +0000
committercookedm <cookedm@localhost>2007-05-28 17:47:47 +0000
commit0f7dfd7f75d339098c1bb024dfb7181c7a31411a (patch)
tree1bd2cf91b2920fe51fda4499176418955b9f0d59 /numpy
parent092c73202225bcfe595b555e890e3e29d862c437 (diff)
downloadnumpy-0f7dfd7f75d339098c1bb024dfb7181c7a31411a.tar.gz
Use log.info instead of print in setup.py's
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/setup.py6
-rw-r--r--numpy/distutils/command/build_src.py6
2 files changed, 7 insertions, 5 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index bffd5b279..814b5fb76 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -2,6 +2,7 @@ import imp
import os
import sys
from os.path import join
+from numpy.distutils import log
from distutils.dep_util import newer
FUNCTIONS_TO_CHECK = [
@@ -37,8 +38,7 @@ def configuration(parent_package='',top_path=None):
target = join(build_dir,'config.h')
if newer(__file__,target):
config_cmd = config.get_config_cmd()
- print 'Generating',target
- #
+ log.info('Generating %s',target)
tc = generate_testcode(target)
from distutils import sysconfig
python_include = sysconfig.get_python_inc()
@@ -145,7 +145,7 @@ def configuration(parent_package='',top_path=None):
sys.path.insert(0, codegen_dir)
try:
m = __import__(module_name)
- print 'executing', script
+ log.info('executing %s', script)
h_file, c_file, doc_file = m.generate_api(build_dir)
finally:
del sys.path[0]
diff --git a/numpy/distutils/command/build_src.py b/numpy/distutils/command/build_src.py
index 9b4e81db0..131bb8d41 100644
--- a/numpy/distutils/command/build_src.py
+++ b/numpy/distutils/command/build_src.py
@@ -224,7 +224,8 @@ class build_src(build_ext.build_ext):
sources, h_files = self.filter_h_files(sources)
if h_files:
- print self.package,'- nothing done with h_files=',h_files
+ log.info('%s - nothing done with h_files = %s',
+ self.package, h_files)
#for f in h_files:
# self.distribution.headers.append((lib_name,f))
@@ -269,7 +270,8 @@ class build_src(build_ext.build_ext):
sources, h_files = self.filter_h_files(sources)
if h_files:
- print package,'- nothing done with h_files=',h_files
+ log.info('%s - nothing done with h_files = %s',
+ package, h_files)
#for f in h_files:
# self.distribution.headers.append((package,f))