diff --git a/python312.spec b/python312.spec index b040533..3efb13f 100644 --- a/python312.spec +++ b/python312.spec @@ -797,6 +797,7 @@ 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