Quoting Johannes Schauer Marin Rodrigues (2022-01-30 14:35:29) > currently, pyc files generated after installation are not reproducible. > Namely, the elements in frozen sets are not ordered reproducibly. This > means that to create a bit-by-bit reproducible Debian chroot including > Python one has to remove all *.pyc files: > > https://gitlab.tails.boum.org/tails/tails/-/blob/stable/config/chroot_local-hooks/99-remove_pyc > https://salsa.debian.org/live-team/live-build/-/blob/master/share/hooks/normal/0170-remove-python-py.hook.chroot > > Fortunately, there is a patch that is already accepted upstream that > fixes this problem: > > https://github.com/python/cpython/pull/27926 > https://bugs.python.org/issue37596 > > That patch also cleanly applies to Python 3.10 as well as to 3.9. I > tested it for both versions. Please consider carrying the attached patch > for 3.9 and 3.10 so that we can have reproducible Debian chroots before > the Python 3.11 release.
for your convenience, I filed a MR on salsa: https://salsa.debian.org/cpython-team/python3/-/merge_requests/15
signature.asc
Description: signature

