Return the name of the VC runtime dll
()
| 32 | return None |
| 33 | |
| 34 | def find_msvcrt(): |
| 35 | """Return the name of the VC runtime dll""" |
| 36 | version = _get_build_version() |
| 37 | if version is None: |
| 38 | # better be safe than sorry |
| 39 | return None |
| 40 | if version <= 6: |
| 41 | clibname = 'msvcrt' |
| 42 | elif version <= 13: |
| 43 | clibname = 'msvcr%d' % (version * 10) |
| 44 | else: |
| 45 | # CRT is no longer directly loadable. See issue23606 for the |
| 46 | # discussion about alternative approaches. |
| 47 | return None |
| 48 | |
| 49 | # If python was built with in debug mode |
| 50 | import importlib.machinery |
| 51 | if '_d.pyd' in importlib.machinery.EXTENSION_SUFFIXES: |
| 52 | clibname += 'd' |
| 53 | return clibname+'.dll' |
| 54 | |
| 55 | def find_library(name): |
| 56 | if name in ('c', 'm'): |
no test coverage detected
searching dependent graphs…