Issue 10140: Tools/scripts/pathfix.py: add option to preserve timestamps (original) (raw)

Issue10140

Created on 2010-10-18 23:16 by dmalcolm, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pathfix-preserve-timestamps.patch dmalcolm,2010-10-18 23:16
Messages (2)
msg119092 - (view) Author: Dave Malcolm (dmalcolm) (Python committer) Date: 2010-10-18 23:16
I'm attempting to fix up the build in my Fedora/RHEL packages of Python to preserve timestamps of .py files as far as possible during the build, so that .pyc/.pyo files end up with predictable embedded mtime values and thus predictable hashes. Am attaching a patch to the py3k branch which adds a "-p" option to the Tools/script/pathfix.py script, which makes it preserve the mtime of the input files.
msg119118 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2010-10-19 04:40
The patch was fine and yes agree that preserving timestamp as an option is useful in many situations. Committed in r85720. Thanks.
History
Date User Action Args
2022-04-11 14:57:07 admin set github: 54349
2010-10-19 04:40:53 orsenthil set status: open -> closedassignee: orsenthilnosy: + orsenthilmessages: + resolution: acceptedstage: patch review -> resolved
2010-10-18 23:16:58 dmalcolm create