The Modules/getbuildinfo.c allows the use of DATE and TIME macros to be defined via CFLAGS. These vars, control the build date & time when the interpreter is opened, and can be read via the `platform._sys_version()` function. So, a conversion from SOURCE_DATE_EPOCH to DATE & TIME is required at build-time. This is especially needed for `platform._sys_version()` to work. The installation of pip seems to rely on this. The logic has been adapted from: https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal#Makefile Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> |
||
---|---|---|
.. | ||
001-enable-zlib.patch | ||
003-do-not-run-distutils-tests.patch | ||
004-do-not-write-bytes-codes.patch | ||
006-remove-multi-arch-and-local-paths.patch | ||
007-distutils-do-not-adjust-path.patch | ||
010-do-not-add-rt-lib-dirs-when-cross-compiling.patch | ||
012-add-support-source-date-epoch-pyc.patch | ||
013-getbuildinfo-date-time-source-date-epoch.patch | ||
014-remove-platform-so-suffix.patch | ||
015-abort-on-failed-modules.patch | ||
016-adjust-config-paths.patch |