diff options
author | David Cournapeau <cournape@gmail.com> | 2008-11-17 12:06:26 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-11-17 12:06:26 +0000 |
commit | e81458d964f20b188b944da833551a8332614ff0 (patch) | |
tree | cefec84a8756440626c92586072ede6ebdfdeb2d /numpy | |
parent | cfa01f68bfd00d11bad21d41611c733f2fde8933 (diff) | |
download | numpy-e81458d964f20b188b944da833551a8332614ff0.tar.gz |
Separate function to get the configtest name.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/mingw32ccompiler.py | 7 |
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" |