From 8b32c5b46ecac3a07c6ea34561fd4d968bcab01f Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Fri, 19 Dec 2008 08:53:49 +0000 Subject: Fix .def file generation. --- numpy/distutils/mingw32ccompiler.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/distutils/mingw32ccompiler.py') diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index 9aa11f981..3b7be6343 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -236,15 +236,15 @@ def generate_def(dll, dfile): raise ValueError("Symbol table not found") syms = [] - for j in range(i, len(dump)): - m = _TABLE.match(lines[j]) + for j in range(i+1, len(dump)): + m = _TABLE.match(dump[j]) if m: syms.append((int(m.group(1).strip()), m.group(2))) else: break - d = open(deffile, 'w') - d.write('LIBRARY %s\n' % dllname) + d = open(dfile, 'w') + d.write('LIBRARY %s\n' % dll) d.write(';CODE PRELOAD MOVEABLE DISCARDABLE\n') d.write(';DATA PRELOAD SINGLE\n') d.write('\nEXPORTS\n') -- cgit v1.2.1