From 19de7ff85feb3f649f6a270241f62433ababbf8b Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 4 Oct 2023 20:47:02 +0000 Subject: [PATCH] Do not add a timestamp attribute to .pyc files --- lib/mog/global-transforms.mog | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/mog/global-transforms.mog b/lib/mog/global-transforms.mog index c1e1b094ed..0aa2168717 100644 --- a/lib/mog/global-transforms.mog +++ b/lib/mog/global-transforms.mog @@ -47,13 +47,12 @@ default mode 0644> default mode 0755> -# The timestamp on any compiled python objects that are shipped in a package -# must always be newer than the corresponding source file, or python recompiles -# and the benefit of shipping the compiled version is lost, particularly if -# python is not running with privileges that can update the compiled version on -# disk. +# The timestamp of Python .py files is embedded in the associated compiled .pyc +# file. We must explicitly set the timstamp for these otherwise Python will +# recompile and the benefit of shipping the compiled version is lost, +# particularly if python is not running with privileges that can update the +# compiled version on disk. default timestamp $(TS_SRC)> - default timestamp $(TS_OBJ)> # Overrides set group sys>