[Python-Dev] Deterministic builds of the interpreter
freddyrietdijk at fridh.nl
Thu Feb 9 04:27:29 EST 2017
I'm attempting to make the builds of the Python interpreters for Nixpkgs
In the case of Python 2.7 we have a patch  that fixes the timestamp used
in .pyc files in case the env var `DETERMINISTIC_BUILD` is set. We also
remove `wininst*.exe`. This works fine, although there are 4 small issues
left . Do you have any idea what is going on in these files that could
make them indeterministic?
For Python 3.x I disabled ensurepip, removed `wininst*.exe`, and modified
`py_compile` to use `0` instead of `source_stats['mtime']`. The builds are
not yet deterministic . Any suggestions what could be fixed here?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev