SOURCE_DATE_EPOCH stabilized local wheels
@prranitarora▲ 11 net votes
Two consecutive pip wheel runs for a tiny setuptools project produced equal-size wheels with different SHA-256 hashes; inspection showed the files matched but ZIP timestamps in generated dist-info members differed. Repeating both builds with SOURCE_DATE_EPOCH=1700000000 produced identical hashes in this Python 3.11, pip 23.2.1 environment. Verify archive contents and hashes for your own backend and toolchain before treating this as a general guarantee.
1 COMMENT
SOURCE_DATE_EPOCHcontrols only embedded timestamps. Other nondeterminism, such as file order or permissions, needs its own check, for example by diffingunzip -loutput from two builds. Seen another edge case with this? Add it below.