Accepting request 1104160 from home:dgarcia:branches:devel:languages:python:numeric

- Use %pyproject_wheel and %pyproject_install macros
- Disable broken tests in armv7l (bsc#1212710)

OBS-URL: https://build.opensuse.org/request/show/1104160
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=137
This commit is contained in:
Daniel Garcia 2023-08-17 06:05:47 +00:00 committed by Git OBS Bridge
parent bada428c78
commit 10d8d19460
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 16 11:31:28 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Use %pyproject_wheel and %pyproject_install macros
- Disable broken tests in armv7l (bsc#1212710)
-------------------------------------------------------------------
Mon Aug 14 11:41:16 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -91,7 +91,9 @@ Patch2: ignore-pkg_resources-deprecation.patch
BuildRequires: %{python_module Cython >= 0.29.30 with %python-Cython < 3}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 60.0.0}
BuildRequires: %{python_module wheel}
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros >= 20210929
BuildConflicts: gcc11 < 11.2
@ -206,13 +208,13 @@ EOF
export CFLAGS="%{optflags} -fno-strict-aliasing"
%endif
%python_build
%pyproject_wheel
%install
%{?with_hpc:%hpc_setup}
%{?with_hpc:module load openblas}
%python_exec setup.py install --prefix=%{p_prefix} --root=%{buildroot}
%pyproject_install --prefix %{p_prefix} --root %{buildroot}
%if !%{with hpc}
%python_clone -a %{buildroot}%{_bindir}/f2py
@ -317,6 +319,7 @@ test_failok+=" or test_huge_vectordot"
test_failok+=" or (test_kind and test_quad_precision)"
test_failok+=" or (test_kind and test_int)"
test_failok+=" or (test_kind and test_real)"
test_failok+=" or (test_multinomial_pvals_float32)"
%endif
%ifarch %{arm}
# https://github.com/numpy/numpy/issues/24001
@ -373,7 +376,7 @@ popd
%endif
%{_bindir}/f2py%{python_bin_suffix}
%{python_sitearch}/numpy/
%{python_sitearch}/numpy-%{version}-py*.egg-info
%{python_sitearch}/numpy-%{version}*-info
%license %{python_sitearch}/numpy/LICENSE.txt
%exclude %{python_sitearch}/numpy/core/include/
%exclude %{python_sitearch}/numpy/distutils/mingw/*.c
@ -391,7 +394,7 @@ popd
%endif
%{p_bindir}/f2py%{python_bin_suffix}
%{p_python_sitearch}/numpy/
%{p_python_sitearch}/numpy-%{version}-py*.egg-info
%{p_python_sitearch}/numpy-%{version}*-info
%license %{p_python_sitearch}/numpy/LICENSE.txt
%exclude %{p_python_sitearch}/numpy/core/include/
%exclude %{p_python_sitearch}/numpy/core/lib/libnpymath.a