From cfa45dfdf3ca4572ada0e02342f57dd2c1d77605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 12 May 2022 11:43:00 +0200 Subject: [PATCH] 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. --- brp-python-bytecompile | 1 + macros.pybytecompile | 1 + 2 files changed, 2 insertions(+) diff --git a/brp-python-bytecompile b/brp-python-bytecompile index ce73856..c1749ab 100644 --- a/brp-python-bytecompile +++ b/brp-python-bytecompile @@ -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 diff --git a/macros.pybytecompile b/macros.pybytecompile index 9dabee0..dd8b495 100644 --- a/macros.pybytecompile +++ b/macros.pybytecompile @@ -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 () {\