diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-19 08:37:19 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-19 08:37:19 +0000 |
commit | f7ad1d4d90b20a597c92a4685a5b3a4e4b331956 (patch) | |
tree | 695629f1d599ddd26ddcb6007469621a8a872181 /numpy | |
parent | df2acae5a4bcbc4c76ebbeefcfb07f59c9ee2914 (diff) | |
download | numpy-f7ad1d4d90b20a597c92a4685a5b3a4e4b331956.tar.gz |
Add a function to get a dump of private headers from dll.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py index 5769577e0..af0ac2a16 100644 --- a/numpy/distutils/mingw32ccompiler.py +++ b/numpy/distutils/mingw32ccompiler.py @@ -11,6 +11,7 @@ Support code for building Python extensions on Windows. import os import sys import log +import subprocess # Overwrite certain distutils.ccompiler functions: import numpy.distutils.ccompiler @@ -212,6 +213,10 @@ def find_python_dll(): 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 """ |