summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-12-19 08:37:19 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-12-19 08:37:19 +0000
commitf7ad1d4d90b20a597c92a4685a5b3a4e4b331956 (patch)
tree695629f1d599ddd26ddcb6007469621a8a872181 /numpy
parentdf2acae5a4bcbc4c76ebbeefcfb07f59c9ee2914 (diff)
downloadnumpy-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.py5
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
"""