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

Function msvc_runtime_major

numpy/distutils/misc_util.py:453–462  ·  view source on GitHub ↗

Return major version of MSVC runtime coded like get_build_msvc_version

()

Source from the content-addressed store, hash-verified

451 return None
452
453def msvc_runtime_major():
454 "Return major version of MSVC runtime coded like get_build_msvc_version"
455 major = {1300: 70, # MSVC 7.0
456 1310: 71, # MSVC 7.1
457 1400: 80, # MSVC 8
458 1500: 90, # MSVC 9 (aka 2008)
459 1600: 100, # MSVC 10 (aka 2010)
460 1900: 140, # MSVC 14 (aka 2015)
461 }.get(msvc_runtime_version(), None)
462 return major
463
464#########################
465

Callers 3

build_msvcr_libraryFunction · 0.90
msvc_runtime_libraryFunction · 0.85

Calls 2

msvc_runtime_versionFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected