diff --git a/brp-python-bytecompile b/brp-python-bytecompile index c6afd1e..fbbd02b 100755 --- a/brp-python-bytecompile +++ b/brp-python-bytecompile @@ -114,6 +114,10 @@ fi # For example, below /usr/lib/python2.6/, we're targeting /usr/bin/python2.6 # and below /usr/lib/python3.1/, we're targeting /usr/bin/python3.1 +# Disable Python hash seed randomization +# This should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078 +export PYTHONHASHSEED=0 + shopt -s nullglob for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]+$"`; do