summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Brett <matthew.brett@gmail.com>2012-10-06 12:05:10 +0100
committerMatthew Brett <matthew.brett@gmail.com>2012-10-06 12:05:10 +0100
commit7078f01420626e8261389ce558cb27d750d6650e (patch)
treeae4cfdf22309159674ee577cc78910fc54fbc3d4
parent3f10c36339c0fe40e72378a990e6b3c5423805fb (diff)
downloadnumpy-7078f01420626e8261389ce558cb27d750d6650e.tar.gz
FIX: remove log line causing warning from disutils
Using numpy.distutils through easy_install caused a RuntimeWarning because of a failed import of numpy.distutils. Discussion here: http://thread.gmane.org/gmane.comp.python.numeric.general/51719 The conclusion seemed to be that the safest fix is to remove the one line of logging in the relevant callback. Thanks to Ralf Gommers for the suggestion.
-rw-r--r--numpy/distutils/misc_util.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py
index 2e4ed27f3..ea3d5f325 100644
--- a/numpy/distutils/misc_util.py
+++ b/numpy/distutils/misc_util.py
@@ -249,11 +249,9 @@ def gpaths(paths, local_path='', include_non_existing=True):
_temporary_directory = None
def clean_up_temporary_directory():
- from numpy.distutils import log
global _temporary_directory
if not _temporary_directory:
return
- log.debug('removing %s', _temporary_directory)
try:
shutil.rmtree(_temporary_directory)
except OSError: