[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

Erwan Le Pape report at bugs.python.org
Fri Sep 14 15:30:40 EDT 2018


Erwan Le Pape <lepaperwan3 at gmail.com> added the comment:

How would you suggest going about doing that?

Without the proposed option, the alternative is leaving the build process vulnerable to environment variables potentially breaking the build process by patching configure.ac as follows:
-PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
+PYTHON_FOR_BUILD='PYTHONHASHSEED=0 ./$(BUILDPYTHON) -E'

Otherwise all environment variables affecting the Python interpreter would need to be cleared in addition to setting PYTHONHASHSEED=0.

Without these `hacks`, making build outputs to be deterministic means fixing marshal to essentially sort elements when dumping unordered objects. Would you rather see a patch going in that direction?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34686>
_______________________________________


More information about the Python-bugs-list mailing list