Avoid pytest-xdist dependency in RHEL builds

python-pytest-xdist is unwanted in RHEL due to its dependencies.
This commit is contained in:
Yaakov Selkowitz 2023-05-23 19:32:34 -04:00
parent 40898d6245
commit d3cbcc3c46
1 changed files with 7 additions and 2 deletions

View File

@ -25,7 +25,7 @@
Summary: Scientific Tools for Python Summary: Scientific Tools for Python
Name: scipy Name: scipy
Version: 1.10.1 Version: 1.10.1
Release: 2%{?dist} Release: 3%{?dist}
# BSD -- whole package except: # BSD -- whole package except:
# Boost -- scipy/special/cephes/scipy_iv.c # Boost -- scipy/special/cephes/scipy_iv.c
@ -46,7 +46,9 @@ BuildRequires: python3-pooch
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-Cython BuildRequires: python3-Cython
BuildRequires: python3-pytest BuildRequires: python3-pytest
%if ! 0%{?rhel}
BuildRequires: python3-pytest-xdist BuildRequires: python3-pytest-xdist
%endif
BuildRequires: python3-pytest-timeout BuildRequires: python3-pytest-timeout
%if %{with pythran} %if %{with pythran}
@ -209,7 +211,7 @@ not test_resiliency_random[TestCSC-test_sum_dtype]'"
%endif %endif
pushd %{buildroot}/%{python3_sitearch} pushd %{buildroot}/%{python3_sitearch}
%{pytest} --timeout=${TIMEOUT} scipy --numprocesses=auto %{pytest} --timeout=${TIMEOUT} scipy %{?!rhel:--numprocesses=auto}
# Remove test remnants # Remove test remnants
rm -rf gram{A,B} rm -rf gram{A,B}
popd popd
@ -226,6 +228,9 @@ popd
%endif %endif
%changelog %changelog
* Tue May 23 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.10.1-3
- Avoid pytest-xdist dependency in RHEL builds
* Wed Mar 15 2023 Pavel Šimovec <psimovec@redhat.com> - 1.10.1-2 * Wed Mar 15 2023 Pavel Šimovec <psimovec@redhat.com> - 1.10.1-2
- Remove workaround for linking issue on x86_64 - Remove workaround for linking issue on x86_64
- resolves: #2068530 - resolves: #2068530