diff --git a/python-numpy.changes b/python-numpy.changes index 5487e93..9f2a2ab 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 16 11:31:28 UTC 2023 - Daniel Garcia + +- 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 diff --git a/python-numpy.spec b/python-numpy.spec index 754f201..f075d8b 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -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