forked from pool/python-numpy
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:
parent
bada428c78
commit
10d8d19460
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user