[Numpy-svn] r6164 - branches/numpy-mingw-w64/numpy/distutils
numpy-svn at scipy.org
numpy-svn at scipy.org
Fri Dec 19 04:32:49 EST 2008
Author: cdavid
Date: 2008-12-19 03:32:46 -0600 (Fri, 19 Dec 2008)
New Revision: 6164
Modified:
branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
Log:
Actually build the import library for mingw on amd64.
Modified: branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py 2008-12-19 09:22:18 UTC (rev 6163)
+++ branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py 2008-12-19 09:32:46 UTC (rev 6164)
@@ -268,10 +268,22 @@
raise ValueError("Unhandled arch %s" % arch)
def _build_import_library_amd64():
+ dll_file = find_python_dll()
+
out_name = "libpython%d%d.a" % tuple(sys.version_info[:2])
out_file = os.path.join(sys.prefix, 'libs', out_name)
- log.info('Building import library (arch=AMD64): "%s"' % (out_file))
+ def_name = "python%d%d.def" % tuple(sys.version_info[:2])
+ def_file = os.path.join(sys.prefix,'libs',def_name)
+
+ log.info('Building import library (arch=AMD64): "%s" (from %s)' \
+ % (out_file, dll_file))
+
+ generate_def(dll_file, def_file)
+
+ cmd = ['dlltool', '-d', def_file, '-l', out_file]
+ subprocess.Popen(cmd)
+
def _build_import_library_x86():
""" Build the import libraries for Mingw32-gcc on Windows
"""
More information about the Numpy-svn
mailing list