We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb41b2 commit 7a1718bCopy full SHA for 7a1718b
Tools/jit/_targets.py
@@ -71,10 +71,10 @@ def _compute_digest(self) -> str:
71
hasher.update(PYTHON_EXECUTOR_CASES_C_H.read_bytes())
72
hasher.update((self.pyconfig_dir / "pyconfig.h").read_bytes())
73
for dirpath, _, filenames in sorted(os.walk(TOOLS_JIT)):
74
+ # Exclude cache files from digest computation to ensure reproducible builds.
75
+ if dirpath.endswith("__pycache__"):
76
+ continue
77
for filename in filenames:
- # Exclude .pyc files from digest computation to ensure reproducible builds.
- if filename.endswith(".pyc"):
- continue
78
hasher.update(pathlib.Path(dirpath, filename).read_bytes())
79
return hasher.hexdigest()
80
0 commit comments