diff --git a/python310.changes b/python310.changes index 20e1f0c..59595cc 100644 --- a/python310.changes +++ b/python310.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 2 16:18:29 UTC 2024 - Matej Cepl + +- Drop .pyc files from docdir for reproducible builds + ------------------------------------------------------------------- Mon Sep 9 13:41:07 UTC 2024 - Matej Cepl diff --git a/python310.spec b/python310.spec index 48d2192..2dabded 100644 --- a/python310.spec +++ b/python310.spec @@ -819,6 +819,11 @@ LD_LIBRARY_PATH=. ./python -O -c "from py_compile import compile; compile('$FAIL echo %{sitedir}/_import_failed > %{buildroot}/%{sitedir}/site-packages/zzzz-import-failed-hooks.pth %endif +# For the purposes of reproducibility, it is necessary to eliminate any *.pyc files inside documentation dirs +if [ -d %{buildroot}%{_defaultdocdir} ] ; then +find %{buildroot}%{_defaultdocdir} -type f -name \*.pyc -ls -exec rm -vf '{}' \; +fi + %if %{with general} %files -n %{python_pkg_name}-tk %{sitedir}/tkinter