From 8d38d70ac6fe8248b91085bf8b72b117504342ae7824c8bc7a5dc1506eb9377e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 10 Dec 2019 08:20:03 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dist?expand=0&rev=2 --- python-dist.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python-dist.spec b/python-dist.spec index 480886a..bac23a2 100644 --- a/python-dist.spec +++ b/python-dist.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dist Version: 1.0.3 @@ -50,12 +51,12 @@ export CFLAGS="%{optflags}" %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_performance.py + %files %{python_files} %license LICENSE.txt %doc README.md %{python_sitearch}/* -%check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_performance.py - %changelog