_stage
Stage runtime tree structure.
Functions¶
system_fingerprint()
¶
Returns '{os}-{arch}-r{major}.{minor}' string.
Source code in brmspy/_runtime/_platform.py
log(*msg, method_name=None, level=logging.INFO)
¶
Log a message with automatic method name detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
msg
|
str
|
The message to log |
()
|
method_name
|
str
|
The name of the method/function. If None, will auto-detect from call stack. |
None
|
level
|
int
|
Logging level (default: logging.INFO) |
INFO
|
Source code in brmspy/helpers/log.py
_generate_manifest_hash(manifest)
¶
Generate deterministic SHA256 hash of runtime manifest.
Source code in brmspy/_build/_stage.py
stage_runtime_tree(base_dir, metadata, runtime_version)
¶
Create runtime directory structure and copy all required files.
Builds the complete runtime directory tree by: 1. Creating fingerprint-specific directory structure 2. Copying all R packages to Rlib/ 3. Copying CmdStan installation to cmdstan/ 4. Generating manifest.json with checksums
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_dir
|
Path
|
Base directory for runtime tree |
required |
metadata
|
dict
|
Metadata from collect_runtime_metadata() |
required |
runtime_version
|
str
|
Runtime schema version (e.g., "0.1.0") |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to the runtime root directory |