MCPcopy Create free account
hub / github.com/numpy/numpy / check_embedded_msvcr_match_linked

Function check_embedded_msvcr_match_linked

numpy/distutils/mingw32ccompiler.py:554–564  ·  view source on GitHub ↗

msver is the ms runtime version used for the MANIFEST.

(msver)

Source from the content-addressed store, hash-verified

552%d RT_MANIFEST %s""" % (rctype, name)
553
554def check_embedded_msvcr_match_linked(msver):
555 """msver is the ms runtime version used for the MANIFEST."""
556 # check msvcr major version are the same for linking and
557 # embedding
558 maj = msvc_runtime_major()
559 if maj:
560 if not maj == int(msver):
561 raise ValueError(
562 "Discrepancy between linked msvcr " \
563 "(%d) and the one about to be embedded " \
564 "(%d)" % (int(msver), maj))
565
566def configtest_name(config):
567 base = os.path.basename(config._gen_temp_sourcefile("yo", [], "c"))

Callers 1

generate_manifestFunction · 0.85

Calls 1

msvc_runtime_majorFunction · 0.90

Tested by

no test coverage detected