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

Skip to content

Commit 67ba879

Browse files
committed
Fix configtest and manifest_name.
1 parent 3a6c367 commit 67ba879

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

numpy/distutils/command/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from distutils.msvccompiler import get_build_version as get_build_msvc_version
1414
from numpy.distutils.exec_command import exec_command
1515
from numpy.distutils.mingw32ccompiler import msvc_manifest_xml, \
16-
check_embedded_msvcr_match_linked, manifest_name, rc_name
16+
check_embedded_msvcr_match_linked, manifest_name, rc_name, manifest_rc
1717

1818
LANG_EXT['f77'] = '.f'
1919
LANG_EXT['f90'] = '.f90'

numpy/distutils/mingw32ccompiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,14 @@ def check_embedded_msvcr_match_linked(msver):
308308
"(%d)" % (int(msver), maj)
309309

310310
def configtest_name(config):
311-
base = os.path.basename(config._gen_temp_sourcefile("yo", [], lang))
311+
base = os.path.basename(config._gen_temp_sourcefile("yo", [], "c"))
312312
return os.path.splitext(base)[0]
313313

314314
def manifest_name(config):
315315
# Get configest name (including suffix)
316316
root = configtest_name(config)
317-
exext = self.compiler.exe_extension
318-
return root + exect + ".manifest"
317+
exext = config.compiler.exe_extension
318+
return root + exext + ".manifest"
319319

320320
def rc_name(config):
321321
# Get configest name (including suffix)

0 commit comments

Comments
 (0)