From aba8df3def2a256e6b7b6abad22c518cd9f89ebaf22b8c923882c39747ae0803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 13 Feb 2025 13:56:07 +0000 Subject: [PATCH] Accepting request 1245435 from home:bmwiedemann:branches:devel:languages:python:numeric Avoid writing non-deterministic .pyc files during build for reproducible builds OBS-URL: https://build.opensuse.org/request/show/1245435 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=180 --- python-numpy.changes | 6 ++++++ python-numpy.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/python-numpy.changes b/python-numpy.changes index 886fdda..5dc4d7e 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 12 16:55:08 UTC 2025 - Bernhard Wiedemann + +- Avoid writing non-deterministic .pyc files during build + for reproducible builds + ------------------------------------------------------------------- Fri Nov 22 22:33:50 UTC 2024 - Matej Cepl diff --git a/python-numpy.spec b/python-numpy.spec index 264d0e9..e76d201 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -204,6 +204,7 @@ chmod -x \ rm -f PKG-INFO %build +export PYTHONDONTWRITEBYTECODE=1 %define _lto_cflags %{nil} %if %{with hpc} %hpc_setup