[Numpy-svn] r8275 - trunk/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Sat Mar 6 13:12:31 CST 2010


Author: ptvirtan
Date: 2010-03-06 13:12:31 -0600 (Sat, 06 Mar 2010)
New Revision: 8275

Modified:
   trunk/numpy/distutils/misc_util.py
Log:
BUG: distutils: clean up temporary files more aggressively

Modified: trunk/numpy/distutils/misc_util.py
===================================================================
--- trunk/numpy/distutils/misc_util.py	2010-03-06 19:11:30 UTC (rev 8274)
+++ trunk/numpy/distutils/misc_util.py	2010-03-06 19:12:31 UTC (rev 8275)
@@ -7,6 +7,7 @@
 import atexit
 import tempfile
 import subprocess
+import shutil
 
 from distutils.errors import DistutilsError
 
@@ -253,7 +254,7 @@
         return
     log.debug('removing %s', _temporary_directory)
     try:
-        os.rmdir(_temporary_directory)
+        shutil.rmtree(_temporary_directory)
     except OSError:
         pass
     _temporary_directory = None



More information about the Numpy-svn mailing list