fix(01): keep bundled Python commands from writing bytecode caches
This commit is contained in:
1 parent
23ee1c2e47
commit
2fe8b40ea5
5 files changed
+22
No files matched your search
@@ -9,6 +9,10 @@ import hashlib
|
||||
from pathlib import Path
|
||||
import sys
|
||||
|
||||
# A bundled CLI must not create bytecode inside the sealed checkpoint.
|
||||
if __name__ == '__main__':
|
||||
sys.dont_write_bytecode = True
|
||||
|
||||
from fidelity_checkpoint import MATERIALS, PROJECT, _package, preflight
|
||||
from fidelity_receipts import (audit_scenarios, canonical_bytes, contained_path,
|
||||
identify_file, identify_tree, read_json, read_receipt, validate_receipt,
|
||||
|
||||
Reference in new issue
Block a user