Elvis Pranskevichus and Victor Stinner
a6b3ec5b6d
bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607)
...
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.
2018-10-10 18:43:14 +02:00
..
2018-10-09 11:30:21 -04:00
2018-07-06 08:52:26 -07:00
2018-09-27 13:16:26 +02:00
2018-10-05 21:09:56 +03:00
2018-09-23 14:10:07 +03:00
2018-07-28 13:55:11 +01:00
2018-09-10 17:54:37 -07:00
2018-05-30 09:45:55 +02:00
2018-10-08 21:49:29 +03:00
2018-10-06 16:35:53 +02:00
2018-09-19 09:28:06 +03:00
2018-07-07 08:55:03 +09:00
2018-09-15 10:32:29 -07:00
2018-09-26 00:00:08 +01:00
2018-07-28 16:02:56 -05:00
2018-10-02 23:01:23 +02:00
2018-07-08 10:09:20 +03:00
2018-10-10 18:43:14 +02:00
2018-10-08 19:29:24 +03:00
2018-06-29 01:10:05 -04:00
2018-09-13 01:21:16 +03:00
2018-09-21 15:27:26 -07:00
2018-08-11 09:05:04 +03:00
2018-09-24 10:21:12 -07:00
2018-07-16 10:46:04 +02:00
2018-08-30 09:56:14 -07:00
2018-09-13 21:17:40 -07:00
2018-09-13 22:45:00 -07:00
2018-08-22 23:14:14 +03:00
2018-09-27 17:42:37 +03:00
2018-07-24 12:52:51 +03:00
2018-10-05 16:17:18 +02:00
2018-09-10 18:15:56 -07:00
2018-06-19 17:28:50 +09:00
2018-10-10 18:43:14 +02:00
2018-09-29 10:15:55 -06:00
2018-06-07 20:31:26 -04:00
2018-07-09 23:14:54 +03:00
2018-08-03 18:09:57 +09:00
2018-09-14 11:32:16 -04:00
2018-07-25 12:54:58 -04:00
2018-10-05 23:29:36 -07:00
2018-08-11 09:05:04 +03:00
2018-08-27 07:59:28 +01:00
2018-08-28 17:11:56 +10:00
2018-09-18 11:28:51 +03:00
2018-10-10 00:41:33 +02:00
2018-07-31 09:50:16 +03:00
2018-07-23 20:58:21 -07:00
2018-09-10 11:10:01 -07:00
2018-08-07 05:12:18 +03:00
2018-07-06 20:41:06 -07:00
2018-10-04 09:47:09 -07:00
2018-09-18 11:28:51 +03:00
2018-10-10 16:46:44 +02:00
2018-09-18 11:28:51 +03:00
2018-09-07 17:30:33 +02:00
2018-08-07 21:51:12 -07:00
2018-09-18 11:28:51 +03:00
2018-07-09 23:14:54 +03:00
2018-09-22 18:13:53 +03:00
2018-08-27 13:29:51 +03:00
2018-06-20 13:07:31 +08:00
2018-09-18 11:28:51 +03:00
2018-10-10 18:43:14 +02:00
2018-07-23 08:37:47 +03:00
2018-07-04 15:28:20 -07:00
2018-09-18 09:16:26 +03:00
2018-06-19 08:27:29 -07:00
2018-09-12 10:28:53 -07:00
2018-08-06 17:28:19 +09:00
2018-10-09 16:31:55 +02:00
2018-09-12 10:28:53 -07:00
2018-06-01 14:21:34 +02:00
2018-10-05 20:53:45 +03:00
2018-09-18 09:16:26 +03:00
2018-10-05 10:00:45 +03:00
2018-08-09 22:12:08 -07:00
2018-09-11 08:54:07 -07:00
2018-07-16 19:03:03 +02:00
2018-07-06 14:06:00 +09:00
2018-06-06 17:55:18 +02:00
2018-07-06 10:19:08 +03:00
2018-08-25 10:27:55 +03:00
2018-09-10 10:02:33 -07:00
2018-10-08 20:50:16 +02:00
2018-09-10 16:11:04 +03:00
2018-06-08 12:28:37 -07:00
2018-07-08 10:22:32 +03:00
2018-09-18 20:00:05 +03:00
2018-09-25 15:15:47 -04:00