• Elvis Pranskevichus's avatar
    bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607) · a6b3ec5b
    Elvis Pranskevichus yazdı
    Unconditional forcing of ``CHECKED_HASH`` invalidation was introduced in
    3.7.0 in bpo-29708.  The change is bad, as it unconditionally overrides
    *invalidation_mode*, even if it was passed as an explicit argument to
    ``py_compile.compile()`` or ``compileall``.  An environment variable
    should *never* override an explicit argument to a library function.
    That change leads to multiple test failures if the ``SOURCE_DATE_EPOCH``
    environment variable is set.
    
    This changes ``py_compile.compile()`` to only look at
    ``SOURCE_DATE_EPOCH`` if no explicit *invalidation_mode* was specified.
    I also made various relevant tests run with explicit control over the
    value of ``SOURCE_DATE_EPOCH``.
    
    While looking at this, I noticed that ``zipimport`` does not work
    with hash-based .pycs _at all_, though I left the fixes for
    subsequent commits.
    a6b3ec5b
Adı
Son kayıt (commit)
Son güncelleme
..
c-api Loading commit data...
data Loading commit data...
distributing Loading commit data...
distutils Loading commit data...
extending Loading commit data...
faq Loading commit data...
howto Loading commit data...
includes Loading commit data...
install Loading commit data...
installing Loading commit data...
library Loading commit data...
reference Loading commit data...
tools Loading commit data...
tutorial Loading commit data...
using Loading commit data...
whatsnew Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
about.rst Loading commit data...
bugs.rst Loading commit data...
conf.py Loading commit data...
contents.rst Loading commit data...
copyright.rst Loading commit data...
docutils.conf Loading commit data...
glossary.rst Loading commit data...
license.rst Loading commit data...
make.bat Loading commit data...