summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHan <hangenuit@gmail.com>2011-09-14 15:02:25 +0200
committerCharles Harris <charlesr.harris@gmail.com>2011-10-04 11:29:31 -0600
commit1fa57b6ef5a1dcfd78a9a7f4585f647977f1c01b (patch)
treeb86b0066063c6d20598d75a9d2c9ed9be68fb280
parentd7eafb051bbb626c6fb36323e9766b11d81b84ba (diff)
downloadnumpy-1fa57b6ef5a1dcfd78a9a7f4585f647977f1c01b.tar.gz
ENH: Clean up symbol definition file.
-rw-r--r--numpy/distutils/mingw32ccompiler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index 5cdfd4279..cfb66c991 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -345,6 +345,9 @@ def build_msvcr_library(debug=False):
cmd = ['dlltool', '-d', def_file, '-l', out_file]
retcode = subprocess.call(cmd)
+ # Clean up symbol definitions
+ os.remove(def_file)
+
return (not retcode)
def build_import_library():