Disable Python hash seed randomization in brp-python-bytecompile
This change should help with byte-compilation reproducibility: https://bugzilla.redhat.com/show_bug.cgi?id=1686078
This commit is contained in:
parent
b983c2118b
commit
71c410dfa9
@ -114,6 +114,10 @@ fi
|
|||||||
# For example, below /usr/lib/python2.6/, we're targeting /usr/bin/python2.6
|
# 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
|
# 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
|
shopt -s nullglob
|
||||||
for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]+$"`;
|
for python_libdir in `find "$RPM_BUILD_ROOT" -type d|grep -E "/usr/lib(64)?/python[0-9]\.[0-9]+$"`;
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user