Accepting request 921516 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/921516 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mpi?expand=0&rev=4
This commit is contained in:
commit
2d702c0905
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 26 14:12:36 UTC 2021 - Hans-Peter Jansen <hpj@urpla.net>
|
||||
|
||||
- Fix build for Tumbleweed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 15 10:19:55 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -16,6 +16,13 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1500
|
||||
%define mpiver 4
|
||||
%endif
|
||||
%if 0%{?sle_version} >= 150000
|
||||
%define mpiver 2
|
||||
%endif
|
||||
|
||||
%define modname pytest_mpi
|
||||
%define skip_python2 1
|
||||
# mpi4py depends on numpy, which is not available for python36
|
||||
@ -37,7 +44,7 @@ BuildArch: noarch
|
||||
BuildRequires: %{python_module mpi4py}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sybil}
|
||||
BuildRequires: openmpi2
|
||||
BuildRequires: openmpi%{mpiver}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@ -55,9 +62,9 @@ mpi plugin for pytest to collect information from openmpi-based tests.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PATH=${PATH}:%{_libdir}/mpi/gcc/openmpi2/bin
|
||||
source %{_libdir}/mpi/gcc/openmpi2/bin/mpivars.sh
|
||||
%pytest -v -p pytester
|
||||
export PATH=${PATH}:%{_libdir}/mpi/gcc/openmpi%{mpiver}/bin
|
||||
source %{_libdir}/mpi/gcc/openmpi%{mpiver}/bin/mpivars.sh
|
||||
%pytest -v -p pytester --runpytest=subprocess
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
Loading…
Reference in New Issue
Block a user