Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
00328: Restore pyc to TIMESTAMP invalidation mode as default in rpmbuild
Since Fedora 31, the $SOURCE_DATE_EPOCH is set in rpmbuild to the latest %changelog date. This makes Python default to the CHECKED_HASH pyc invalidation mode, bringing more reproducible builds traded for an import performance decrease. To avoid that, we don't default to CHECKED_HASH when $RPM_BUILD_ROOT is set (i.e. when we are building RPM packages). See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426 Downstream only: only used when building RPM packages Ideally, we should talk to upstream and explain why we don't want this
- Loading branch information