[Numpy-svn] r6158 - branches/numpy-mingw-w64/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Fri Dec 19 02:53:54 CST 2008


Author: cdavid
Date: 2008-12-19 02:53:49 -0600 (Fri, 19 Dec 2008)
New Revision: 6158

Modified:
   branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
Log:
Fix .def file generation.

Modified: branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 08:43:56 UTC (rev 6157)
+++ branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 08:53:49 UTC (rev 6158)
@@ -236,15 +236,15 @@
         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')



More information about the Numpy-svn mailing list