MCPcopy Index your code
hub / github.com/emscripten-core/emsdk / print_tools

Function print_tools

emsdk.py:3200–3218  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

3198 return t
3199
3200 def print_tools(t):
3201 for tool in t:
3202 if tool.is_old and not arg_old:
3203 continue
3204 if tool.can_be_installed() is True:
3205 installed = '\tINSTALLED' if tool.is_installed() else ''
3206 else:
3207 installed = '\tNot available: ' + tool.can_be_installed()
3208 tool_is_active = tool.is_active()
3209 tool_is_env_active = tool_is_active and tool.is_env_active()
3210 if tool_is_env_active:
3211 active = ' * '
3212 elif tool_is_active:
3213 active = '(*)'
3214 has_partially_active_tools[0] = has_partially_active_tools[0] or True
3215 else:
3216 active = ' '
3217 print(' ' + active + ' {0: <25}'.format(str(tool)) + installed)
3218 print('')
3219
3220 print('The following precompiled tool packages are available for download:')
3221 print_tools(find_tools(needs_compilation=False))

Callers 1

mainFunction · 0.85

Calls 4

can_be_installedMethod · 0.80
is_installedMethod · 0.80
is_activeMethod · 0.80
is_env_activeMethod · 0.80

Tested by

no test coverage detected