summaryrefslogtreecommitdiff
path: root/numpy/distutils/mingw32ccompiler.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-11-17 12:06:26 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-11-17 12:06:26 +0000
commite81458d964f20b188b944da833551a8332614ff0 (patch)
treecefec84a8756440626c92586072ede6ebdfdeb2d /numpy/distutils/mingw32ccompiler.py
parentcfa01f68bfd00d11bad21d41611c733f2fde8933 (diff)
downloadnumpy-e81458d964f20b188b944da833551a8332614ff0.tar.gz
Separate function to get the configtest name.
Diffstat (limited to 'numpy/distutils/mingw32ccompiler.py')
-rw-r--r--numpy/distutils/mingw32ccompiler.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/distutils/mingw32ccompiler.py b/numpy/distutils/mingw32ccompiler.py
index bbe2fd7a3..1e6ee9570 100644
--- a/numpy/distutils/mingw32ccompiler.py
+++ b/numpy/distutils/mingw32ccompiler.py
@@ -307,9 +307,12 @@ def check_embedded_msvcr_match_linked(msver):
"(%d) and the one about to be embedded " \
"(%d)" % (int(msver), maj)
+def configtest_name(config):
+ base = os.path.basename(config._gen_temp_sourcefile("yo", [], lang))
+ return os.path.splitext(base)[0]
+
def manifest_name(config):
# Get configest name (including suffix)
- base = os.path.basename(config._gen_temp_sourcefile("yo", [], lang))
- root, ext = os.path.splitext(base)
+ root = configtest_name(config)
exext = self.compiler.exe_extension
return root + exect + ".manifest"