From 3150358191fbe2060e96f377ba3576db09a18ca78154394c0e332bcfc1aa5f43 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Thu, 19 Aug 2021 09:31:10 +0000 Subject: [PATCH] - Don't write mtime-based init pyc file during import test (boo#1047218) OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-PyQt6-Charts?expand=0&rev=3 --- python-PyQt6-Charts.changes | 6 ++++++ python-PyQt6-Charts.spec | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-PyQt6-Charts.changes b/python-PyQt6-Charts.changes index 20f5864..d79bfd6 100644 --- a/python-PyQt6-Charts.changes +++ b/python-PyQt6-Charts.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 19 09:30:47 UTC 2021 - Ben Greiner + +- Don't write mtime-based init pyc file during import test + (boo#1047218) + ------------------------------------------------------------------- Tue Jun 15 13:12:14 UTC 2021 - Ben Greiner diff --git a/python-PyQt6-Charts.spec b/python-PyQt6-Charts.spec index 86aa771..8f2e8fe 100644 --- a/python-PyQt6-Charts.spec +++ b/python-PyQt6-Charts.spec @@ -1,5 +1,5 @@ # -# spec file for package python-PyQt6-Charts +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -65,12 +65,12 @@ used to generate the Python bindings for %{name} %pyqt_install %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 Qt%{qtlib}; assert Qt%{qtlib}.PYQT_CHART_VERSION_STR == "%{version}"' } - %files %{python_files} %license LICENSE %doc NEWS README