summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-19 09:46:30 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-19 09:46:30 +0000
commit6c348211147ae411e00e7bfc452c105dd15c6a51 (patch)
tree45dbcf5f63d64073872269b59b7e918b552e8442 /numpy/distutils/mingw32ccompiler.py
parentaa1424960fe5779fe8a11499a7112315b7216ac8 (diff)
downloadnumpy-6c348211147ae411e00e7bfc452c105dd15c6a51.tar.gz
Do not generate ordinal, and use the basename of the dll instead of the full path in the def.file.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index b95e9e020..4280ea0e5 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -247,12 +247,13 @@ def generate_def(dll, dfile):
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():