This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tools/scripts/pathfix.py: add option to preserve timestamps
Type: enhancement Stage: resolved
Components: Build Versions: Python 3.2
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: orsenthil Nosy List: dmalcolm, orsenthil
Priority: normal Keywords: needs review, patch

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:07adminsetgithub: 54349
2010-10-19 04:40:53orsenthilsetstatus: open -> closed

assignee: orsenthil

nosy: + orsenthil
messages: + msg119118
resolution: accepted
stage: patch review -> resolved
2010-10-18 23:16:58dmalcolmcreate