main (python/src/entropic/install_engine.py)¶
Overview · 8 steps, 1 lane
All 8 steps
| # | caller | callee | what it does | requirements | call site |
|---|---|---|---|---|---|
| 1 | main | install | Install the engine tarball; return process-style exit code. | REQ-PROD-003 | python/src/entropic/install_engine.py:185 |
| 2 | install | _detect_backend | Return "cuda" if nvidia-smi succeeds, else "cpu". | REQ-PROD-003 | python/src/entropic/install_engine.py:135 |
| 3 | install | _install_root | Return the resolved install root ($ENTROPIC_HOME or ~/.entropic). | — | python/src/entropic/install_engine.py:136 |
| 4 | install | _expected_sha256 | Fetch the .sha256 sidecar and return the bare hash. | REQ-PROD-003 | python/src/entropic/install_engine.py:144 |
| 5 | install | _verify_existing | If a stamp file matches expected_hash, install is current. | REQ-PROD-003 | python/src/entropic/install_engine.py:146 |
| 6 | install | _download | Stream url to dest; raise URLError or HTTPError on failure. | — | python/src/entropic/install_engine.py:152 |
| 7 | install | _sha256_of | Return the lowercase hex SHA256 of path. | REQ-PROD-003 | python/src/entropic/install_engine.py:153 |
| 8 | install | _extract_to | Wipe root/entropic then extract tarball into root. | — | python/src/entropic/install_engine.py:161 |
Functions¶
9 functions
_detect_backendpython/src/entropic/install_engine.py_downloadpython/src/entropic/install_engine.py_expected_sha256python/src/entropic/install_engine.py_extract_topython/src/entropic/install_engine.py_install_rootpython/src/entropic/install_engine.py_sha256_ofpython/src/entropic/install_engine.py_verify_existingpython/src/entropic/install_engine.pyinstallpython/src/entropic/install_engine.pymainpython/src/entropic/install_engine.py
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
9 functions, each with its quick view
- _detect_backend
Return "cuda" if nvidia-smi succeeds, else "cpu".
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _download
Stream url to dest; raise URLError or HTTPError on failure.
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _expected_sha256
Fetch the .sha256 sidecar and return the bare hash.
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _extract_to
Wipe root/entropic then extract tarball into root.
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _install_root
Return the resolved install root ($ENTROPIC_HOME or ~/.entropic).
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- _sha256_of
Return the lowercase hex SHA256 of path.
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- _verify_existing
If a stamp file matches expected_hash, install is current.
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- install
Install the engine tarball; return process-style exit code.
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- main
entropic install-engine entry point.
Map
Show it on the map, in its block's wedge.
Block
python/src is the block holding
python/src/entropic/install_engine.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs