diff options
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/py_compile.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/py_compile.rst b/Doc/library/py_compile.rst index a4f06de..d720e01 100644 --- a/Doc/library/py_compile.rst +++ b/Doc/library/py_compile.rst @@ -55,7 +55,9 @@ byte-code cache files in the directory containing the source code. *invalidation_mode* should be a member of the :class:`PycInvalidationMode` enum and controls how the generated ``.pyc`` files are invalidated at - runtime. + runtime. If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set, + *invalidation_mode* will be forced to + :attr:`PycInvalidationMode.CHECKED_HASH`. .. versionchanged:: 3.2 Changed default value of *cfile* to be :PEP:`3147`-compliant. Previous @@ -71,6 +73,9 @@ byte-code cache files in the directory containing the source code. .. versionchanged:: 3.7 The *invalidation_mode* parameter was added as specified in :pep:`552`. + If the :envvar:`SOURCE_DATE_EPOCH` environment variable is set, + *invalidation_mode* will be forced to + :attr:`PycInvalidationMode.CHECKED_HASH`. .. class:: PycInvalidationMode |