From 7078f01420626e8261389ce558cb27d750d6650e Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Sat, 6 Oct 2012 12:05:10 +0100 Subject: 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. --- numpy/distutils/misc_util.py | 2 -- 1 file changed, 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: -- cgit v1.2.1