Add a note: Python 3.11+ no longer needs PYTHONHASHSEED=0

Implemented in:  https://github.com/python/cpython/pull/27926

We keep using it thou, because this is Python version agnostic.

Once we drop support for anything older than 3.11, we can remove it.
That'll be around ~2030. Assuming the world still exists by then.
This commit is contained in:
Miro Hrončok 2022-05-12 11:43:00 +02:00
parent 9102e29afc
commit cfa45dfdf3
2 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,7 @@ fi
# Disable Python hash seed randomization
# This should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078
# Python 3.11+ no longer needs this: https://github.com/python/cpython/pull/27926 (but we support older Pythons as well)
export PYTHONHASHSEED=0
shopt -s nullglob

View File

@ -14,6 +14,7 @@
# Setting PYTHONHASHSEED=0 disables Python hash seed randomization
# This should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078
# Python 3.11+ no longer needs this: https://github.com/python/cpython/pull/27926 (but we support older Pythons as well)
%py_byte_compile()\
py2_byte_compile () {\