From ddc3d38171e07aea1740f506b876749b2852cadd05736f3e2c38d34f78f955b1 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 19 Aug 2021 09:02:41 +0000 Subject: [PATCH] Accepting request 913014 from home:bmwiedemann:branches:KDE:Qt:PyQt Stop writing mtime-based pyc files during tests (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/913014 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6?expand=0&rev=7 --- python-PyQt6.changes | 5 +++++ python-PyQt6.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-PyQt6.changes b/python-PyQt6.changes index d086740..20582b4 100644 --- a/python-PyQt6.changes +++ b/python-PyQt6.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 19 07:33:23 UTC 2021 - Bernhard Wiedemann + +- Stop writing mtime-based pyc files during tests (boo#1047218) + ------------------------------------------------------------------- Wed Jul 14 22:42:04 UTC 2021 - Ben Greiner diff --git a/python-PyQt6.spec b/python-PyQt6.spec index 6a9e645..90244fa 100644 --- a/python-PyQt6.spec +++ b/python-PyQt6.spec @@ -121,6 +121,7 @@ dos2unix examples/quick/models/*/view.qml %python_expand %fdupes %{buildroot}%{$python_sitearch} %check +export PYTHONDONTWRITEBYTECODE=1 # boo#1047218 %{python_expand # there is no test suite. If it compiles and imports, it should be okay. export PYTHONPATH=%{buildroot}%{$python_sitearch} $python -c 'from PyQt6 import QtCore; assert QtCore.PYQT_VERSION_STR == "%{version}"'