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

numpy-svn@scip... numpy-svn@scip...
Fri Dec 19 02:38:26 CST 2008


Author: cdavid
Date: 2008-12-19 02:37:19 -0600 (Fri, 19 Dec 2008)
New Revision: 6155

Modified:
   branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
Log:
Add a function to get a dump of private headers from dll.

Modified: branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py
===================================================================
--- branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 08:28:49 UTC (rev 6154)
+++ branches/numpy-mingw-w64/numpy/distutils/mingw32ccompiler.py	2008-12-19 08:37:19 UTC (rev 6155)
@@ -11,6 +11,7 @@
 import os
 import sys
 import log
+import subprocess
 
 # Overwrite certain distutils.ccompiler functions:
 import numpy.distutils.ccompiler
@@ -212,6 +213,10 @@
 
     raise ValueError("%s not found in %s" % (dllname, lib_dirs))
 
+def dump_table(dll):
+    st = subprocess.Popen(["objdump.exe", "-p", dll], stdout=subprocess.PIPE)
+    return st.stdout.readlines()
+
 def build_import_library():
     """ Build the import libraries for Mingw32-gcc on Windows
     """



More information about the Numpy-svn mailing list