forked from pool/python-numpy
Accepting request 839831 from home:StefanBruens:branches:devel:languages:python:numeric
- Add cblas build dependency, otherwise numpy uses naive internal implementations for some blas operations, mitigates boo#1177260. - Add libopenblas recommends. To actually use openblas instead of netlib BLAS/LAPACK, update-alternatives has to be used. - Remove .pytest_cache from the build_root OBS-URL: https://build.opensuse.org/request/show/839831 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=76
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 2 13:29:32 UTC 2020 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- Add cblas build dependency, otherwise numpy uses naive internal
|
||||||
|
implementations for some blas operations, mitigates boo#1177260.
|
||||||
|
- Add libopenblas recommends. To actually use openblas instead of
|
||||||
|
netlib BLAS/LAPACK, update-alternatives has to be used.
|
||||||
|
- Remove .pytest_cache from the build_root
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 30 07:13:22 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
Wed Sep 30 07:13:22 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
@@ -101,7 +101,10 @@ BuildRequires: gcc-gfortran
|
|||||||
BuildRequires: openblas-devel > 0.3.4
|
BuildRequires: openblas-devel > 0.3.4
|
||||||
%else
|
%else
|
||||||
BuildRequires: blas-devel
|
BuildRequires: blas-devel
|
||||||
|
BuildRequires: cblas-devel
|
||||||
BuildRequires: lapack-devel
|
BuildRequires: lapack-devel
|
||||||
|
# openblas has significantly better performance for some operations
|
||||||
|
Recommends: libopenblas_pthreads0
|
||||||
%endif
|
%endif
|
||||||
# Last version which packaged %%{_bindir}/f2py without update-alternatives
|
# Last version which packaged %%{_bindir}/f2py without update-alternatives
|
||||||
# Protect it from substitution
|
# Protect it from substitution
|
||||||
@@ -141,6 +144,7 @@ Requires: python-devel
|
|||||||
Requires: openblas-devel
|
Requires: openblas-devel
|
||||||
%else
|
%else
|
||||||
Requires: blas-devel
|
Requires: blas-devel
|
||||||
|
Requires: cblas-devel
|
||||||
Requires: lapack-devel
|
Requires: lapack-devel
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
@@ -253,10 +257,13 @@ pushd testing
|
|||||||
# boo#1148173 gh#numpy/numpy#14438
|
# boo#1148173 gh#numpy/numpy#14438
|
||||||
%ifarch ppc64 ppc64le
|
%ifarch ppc64 ppc64le
|
||||||
%define skiptest -k "not test_generalized_sq"
|
%define skiptest -k "not test_generalized_sq"
|
||||||
|
%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy -k "test_generalized_sq" || true
|
||||||
%endif
|
%endif
|
||||||
%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy %{?skiptest}
|
%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy %{?skiptest}
|
||||||
popd
|
popd
|
||||||
|
rm -Rf %{buildroot}%{python_sitearch}/numpy/.pytest_cache
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without hpc}
|
%if %{without hpc}
|
||||||
%post
|
%post
|
||||||
%python_install_alternative f2py
|
%python_install_alternative f2py
|
||||||
|
Reference in New Issue
Block a user