SHA256
1
0
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:
Matej Cepl 2020-10-08 18:09:39 +00:00 committed by Git OBS Bridge
parent eddae912bf
commit 68b917de82
2 changed files with 16 additions and 0 deletions

View File

@ -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>

View File

@ -101,7 +101,10 @@ BuildRequires: gcc-gfortran
BuildRequires: openblas-devel > 0.3.4
%else
BuildRequires: blas-devel
BuildRequires: cblas-devel
BuildRequires: lapack-devel
# openblas has significantly better performance for some operations
Recommends: libopenblas_pthreads0
%endif
# Last version which packaged %%{_bindir}/f2py without update-alternatives
# Protect it from substitution
@ -141,6 +144,7 @@ Requires: python-devel
Requires: openblas-devel
%else
Requires: blas-devel
Requires: cblas-devel
Requires: lapack-devel
%endif
%else
@ -253,10 +257,13 @@ pushd testing
# boo#1148173 gh#numpy/numpy#14438
%ifarch ppc64 ppc64le
%define skiptest -k "not test_generalized_sq"
%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy -k "test_generalized_sq" || true
%endif
%pytest_arch -n auto --pyargs numpy %{buildroot}%{python_sitearch}/numpy %{?skiptest}
popd
rm -Rf %{buildroot}%{python_sitearch}/numpy/.pytest_cache
%endif
%if %{without hpc}
%post
%python_install_alternative f2py