summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-19 08:53:49 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-19 08:53:49 +0000
commit8b32c5b46ecac3a07c6ea34561fd4d968bcab01f (patch)
tree8c5366345aabb4b2e50de7d85f55ab26d0023877 /numpy/distutils/mingw32ccompiler.py
parenta00507d6bce4010244ac9124453cf2ce9c9b4fe1 (diff)
downloadnumpy-8b32c5b46ecac3a07c6ea34561fd4d968bcab01f.tar.gz
Fix .def file generation.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py8
1 files changed, 4 insertions, 4 deletions
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')