[Python-Dev] Deterministic builds of the interpreter
freddyrietdijk at fridh.nl
Thu Feb 16 12:03:16 EST 2017
Are there anymore suggestions how to improve the determinism of the Python
3 interpreter? As I mentioned, it seems only sets cause unreproducible
bytecode. Sets have no order. But when generating the bytecode, I would
expect there would still be an order since the code isn't actually
On Fri, Feb 10, 2017 at 12:03 PM, INADA Naoki <songofacandy at gmail.com>
> On Fri, Feb 10, 2017 at 7:58 PM, Freddy Rietdijk
> <freddyrietdijk at fridh.nl> wrote:
> > For Python 3.5 PYTHONHASHSEED doesn't seem to be sufficient, these items
> > still seem indeterministic.
> > To be sure, I ran `PYTHONHASHSEED=1 $out/bin/python -m compileall -f
> > where $out is the path where I installed Python.
> > Do you have an idea why in , this is Python 2.7, the timestamps are
> > incorrect? I think they're all required for `compileall` and somehow it
> > doesn't seem capable of taking into account DETERMINISTIC_BUILD.
> > removing those pyc and pyo files and recompiling them to bytecode still
> > results in timestamp issues for these 4 files.
> Sorry, I have no motivation about Python 2 anymore.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev