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

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Dec 19 04:46:44 EST 2008


Author: cdavid
Date: 2008-12-19 03:46:30 -0600 (Fri, 19 Dec 2008)
New Revision: 6165

Modified:
   branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
Log:
Do not generate ordinal, and use the basename of the dll instead of the full path in the def.file.

Modified: branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 09:32:46 UTC (rev 6164)
+++ branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 09:46:30 UTC (rev 6165)
@@ -247,12 +247,13 @@
         log.warn('No symbols found in %s' % dll)
 
     d = open(dfile, 'w')
-    d.write('LIBRARY        %s\n' % dll)
+    d.write('LIBRARY        %s\n' % os.path.basename(dll))
     d.write(';CODE          PRELOAD MOVEABLE DISCARDABLE\n')
     d.write(';DATA          PRELOAD SINGLE\n')
     d.write('\nEXPORTS\n')
     for s in syms:
-        d.write('@%d    %s\n' % (s[0], s[1]))
+        #d.write('@%d    %s\n' % (s[0], s[1]))
+        d.write('%s\n' % s[1])
     d.close()
 
 def build_import_library():




More information about the Numpy-svn mailing list