Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e81458d

Browse files
committed
Separate function to get the configtest name.
1 parent cfa01f6 commit e81458d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

numpy/distutils/mingw32ccompiler.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,12 @@ def check_embedded_msvcr_match_linked(msver):
307307
"(%d) and the one about to be embedded " \
308308
"(%d)" % (int(msver), maj)
309309

310+
def configtest_name(config):
311+
base = os.path.basename(config._gen_temp_sourcefile("yo", [], lang))
312+
return os.path.splitext(base)[0]
313+
310314
def manifest_name(config):
311315
# Get configest name (including suffix)
312-
base = os.path.basename(config._gen_temp_sourcefile("yo", [], lang))
313-
root, ext = os.path.splitext(base)
316+
root = configtest_name(config)
314317
exext = self.compiler.exe_extension
315318
return root + exect + ".manifest"

0 commit comments

Comments
 (0)