(plat_spec)
| 91 | } |
| 92 | |
| 93 | def _find_vcvarsall(plat_spec): |
| 94 | # bpo-38597: Removed vcruntime return value |
| 95 | _, best_dir = _find_vc2017() |
| 96 | |
| 97 | if not best_dir: |
| 98 | best_version, best_dir = _find_vc2015() |
| 99 | |
| 100 | if not best_dir: |
| 101 | log.debug("No suitable Visual C++ version found") |
| 102 | return None, None |
| 103 | |
| 104 | vcvarsall = os.path.join(best_dir, "vcvarsall.bat") |
| 105 | if not os.path.isfile(vcvarsall): |
| 106 | log.debug("%s cannot be found", vcvarsall) |
| 107 | return None, None |
| 108 | |
| 109 | return vcvarsall, None |
| 110 | |
| 111 | def _get_vc_env(plat_spec): |
| 112 | if os.getenv("DISTUTILS_USE_SDK"): |
no test coverage detected
searching dependent graphs…