<div dir="ltr">> <span style="font-size:12.8px">The main objection to that model is that it requires modifying source</span><br style="font-size:12.8px"><span style="font-size:12.8px">timestamps, which isn't possible for builds on read-only source trees.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Why not set the source timestamps of the source trees to say 1 first? That's what is done with the Nix package manager. The Python interpreter is patched (mostly similar to the referred PR) and checks whether SOURCE_DATE_EPOCH is set, and if so, sets the mtime to 1.<br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 7, 2017 at 11:08 PM, Benjamin Peterson <span dir="ltr"><<a href="mailto:benjamin@python.org" target="_blank">benjamin@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On Thu, Sep 7, 2017, at 14:00, Antoine Pitrou wrote:<br>
> On Thu, 07 Sep 2017 13:39:21 -0700<br>
> Benjamin Peterson <<a href="mailto:benjamin@python.org">benjamin@python.org</a>> wrote:<br>
> > Hello,<br>
> > I've written a short PEP about an import extension to allow pycs to be<br>
> > more deterministic by optional replacing the timestamp with a hash of<br>
> > the source file: <a href="https://www.python.org/dev/peps/pep-0552/" rel="noreferrer" target="_blank">https://www.python.org/dev/<wbr>peps/pep-0552/</a><br>
><br>
> Why isn't <a href="https://github.com/python/cpython/pull/296" rel="noreferrer" target="_blank">https://github.com/python/<wbr>cpython/pull/296</a> a good enough<br>
> solution to this problem?  It has a simple implementation, and requires<br>
> neither maintaining two different pyc formats nor reading the entire<br>
> source file to check whether the pyc file is up to date.<br>
<br>
</span>The main objection to that model is that it requires modifying source<br>
timestamps, which isn't possible for builds on read-only source trees.<br>
This proposal also allows reproducible builds even if the files are<br>
being modified in an edit-run-tests cycle.<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/freddyrietdijk%40fridh.nl" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/options/python-dev/<wbr>freddyrietdijk%40fridh.nl</a><br>
</div></div></blockquote></div><br></div>