Skip to content

Commit cfa45df

Browse files
committed
Add a note: Python 3.11+ no longer needs PYTHONHASHSEED=0
Implemented in: python/cpython#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.
1 parent 9102e29 commit cfa45df

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

brp-python-bytecompile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ fi
104104

105105
# Disable Python hash seed randomization
106106
# This should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078
107+
# Python 3.11+ no longer needs this: https://github.com/python/cpython/pull/27926 (but we support older Pythons as well)
107108
export PYTHONHASHSEED=0
108109

109110
shopt -s nullglob

macros.pybytecompile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
# Setting PYTHONHASHSEED=0 disables Python hash seed randomization
1616
# This should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078
17+
# Python 3.11+ no longer needs this: https://github.com/python/cpython/pull/27926 (but we support older Pythons as well)
1718

1819
%py_byte_compile()\
1920
py2_byte_compile () {\

0 commit comments

Comments
 (0)