diff --git a/python313.spec b/python313.spec index 5ee7999..b0f212f 100644 --- a/python313.spec +++ b/python313.spec @@ -868,6 +868,11 @@ rm %{buildroot}%{_mandir}/man1/python%{python_version}.1* %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