From 74b8c399cf2a54717076f13c7e4a9b131a56ab6e9256aebd3e2858badfa266c5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 30 Sep 2024 16:48:11 +0000 Subject: [PATCH] Accepting request 1204725 from home:bmwiedemann:branches:devel:languages:python:Factory Drop .pyc files from docdir for reproducible builds without this change, 2 files varied between builds: /usr/share/doc/packages/python312-core/Tools/build/__pycache__/generate_global_objects.cpython-312.pyc /usr/share/doc/packages/python312-core/Tools/build/__pycache__/umarshal.cpython-312.pyc OBS-URL: https://build.opensuse.org/request/show/1204725 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=69 --- python312.changes | 5 +++++ python312.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python312.changes b/python312.changes index 211f3fc..9e42749 100644 --- a/python312.changes +++ b/python312.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 30 09:42:13 UTC 2024 - Bernhard Wiedemann + +- Drop .pyc files from docdir for reproducible builds + ------------------------------------------------------------------- Fri Sep 13 17:09:37 UTC 2024 - Matej Cepl diff --git a/python312.spec b/python312.spec index 55fc1b1..48c39eb 100644 --- a/python312.spec +++ b/python312.spec @@ -796,6 +796,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 +find %{buildroot}%{_docdir}/%{name} -type f -name \*.pyc -delete ||: %if %{with general} %files -n %{python_pkg_name}-tk