Please sign in to comment.
bpo-29708: Setting SOURCE_DATE_EPOCH forces hash-based .pyc files (GH…
…-5200) To support reproducible builds, the setting of of SOURCE_DATE_EPOCH triggers the py_compile module -- and by extension, compileall -- to forcibly compile with hash-based .pyc files. This eliminates the possibility of timestamp-based .pyc files which vary between builds.
- Loading branch information...
Showing with 22 additions and 1 deletion.
|@@ -0,0 +1,2 @@|
|If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set,|
|:mod:`py_compile` will always create hash-based ``.pyc`` files.|