From 1fa57b6ef5a1dcfd78a9a7f4585f647977f1c01b Mon Sep 17 00:00:00 2001 From: Han Date: Wed, 14 Sep 2011 15:02:25 +0200 Subject: ENH: Clean up symbol definition file. --- numpy/distutils/mingw32ccompiler.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/distutils') 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(): -- cgit v1.2.1