()
| 95 | |
| 96 | |
| 97 | def get_win_generators(): |
| 98 | result = list() |
| 99 | try: |
| 100 | output = subprocess.check_output( |
| 101 | ['C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vswhere.exe', |
| 102 | '-property', |
| 103 | 'displayName']) |
| 104 | output = output.decode('utf-8', 'ignore') |
| 105 | print(output) |
| 106 | if '2022' in output: |
| 107 | result.append(VS2022()) |
| 108 | if '2019' in output: |
| 109 | result.append(VS2019()) |
| 110 | if '2017' in output: |
| 111 | result.append(VS2017()) |
| 112 | except BaseException: |
| 113 | print('No Visual Studio Installations Found') |
| 114 | return sorted(result, reverse=True) |
| 115 | |
| 116 | |
| 117 | def check_deps(): |
no test coverage detected