at 23.05-pre 667 B view raw
1--- a/Lib/py_compile.py 2+++ b/Lib/py_compile.py 3@@ -139,3 +139,4 @@ 4 source_stats = loader.path_stats(file) 5+ source_mtime = 1 if 'DETERMINISTIC_BUILD' in os.environ else source_stats['mtime'] 6 bytecode = importlib._bootstrap_external._code_to_bytecode( 7- code, source_stats['mtime'], source_stats['size']) 8+ code, source_mtime, source_stats['size']) 9--- a/Lib/importlib/_bootstrap_external.py 10+++ b/Lib/importlib/_bootstrap_external.py 11@@ -485,5 +485,5 @@ 12 if source_stats is not None: 13 try: 14- source_mtime = int(source_stats['mtime']) 15+ source_mtime = 1 16 except KeyError: 17 pass