From 8c2f054df4c21e61e878996fded9866800fcc7af47bd7c164d32e43e03b6f23a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 1 Oct 2024 23:45:48 +0000 Subject: [PATCH] Fix the command OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=75 --- python312.spec | 1 + 1 file changed, 1 insertion(+) 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