MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_win_generators

Function get_win_generators

tools/build.py:97–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96
97def 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
117def check_deps():

Callers 1

prepare_argsFunction · 0.85

Calls 3

VS2022Class · 0.85
VS2019Class · 0.85
VS2017Class · 0.85

Tested by

no test coverage detected