MCPcopy
hub / github.com/emscripten-core/emsdk / install

Method install

emsdk.py:2083–2093  ·  view source on GitHub ↗

Returns True if the Tool was installed of False if was skipped due to already being installed.

(self)

Source from the content-addressed store, hash-verified

2081 return self.url
2082
2083 def install(self):
2084 """Returns True if the Tool was installed of False if was skipped due to
2085 already being installed.
2086 """
2087 if self.can_be_installed() is not True:
2088 exit_with_error(f"The tool '{self}' is not available due to the reason: {self.can_be_installed()}")
2089
2090 if self.id == 'sdk':
2091 return self.install_sdk()
2092 else:
2093 return self.install_tool()
2094
2095 def install_sdk(self):
2096 """Returns True if any SDK component was installed of False all componented

Callers 2

install_sdkMethod · 0.80
mainFunction · 0.80

Calls 4

can_be_installedMethod · 0.95
install_sdkMethod · 0.95
install_toolMethod · 0.95
exit_with_errorFunction · 0.85

Tested by

no test coverage detected