Return name of MSVC runtime library if Python was built with MSVC >= 7
()
| 440 | return msc_ver |
| 441 | |
| 442 | def msvc_runtime_library(): |
| 443 | "Return name of MSVC runtime library if Python was built with MSVC >= 7" |
| 444 | ver = msvc_runtime_major () |
| 445 | if ver: |
| 446 | if ver < 140: |
| 447 | return "msvcr%i" % ver |
| 448 | else: |
| 449 | return "vcruntime%i" % ver |
| 450 | else: |
| 451 | return None |
| 452 | |
| 453 | def msvc_runtime_major(): |
| 454 | "Return major version of MSVC runtime coded like get_build_msvc_version" |
no test coverage detected