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
@@ -17,9 +17,14 @@ import re
|
||||
import shutil
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
# A bundled CLI must not create bytecode inside the sealed checkpoint.
|
||||
if __name__ == '__main__':
|
||||
sys.dont_write_bytecode = True
|
||||
|
||||
from fidelity_checkpoint import _package
|
||||
from fidelity_receipts import (MAX_JSON_BYTES, _id, _write_json, canonical_bytes,
|
||||
contained_path, identify_file, import_receipt, read_json, separated_roots,
|
||||
|
||||
Reference in new issue
Block a user