SHA256
1
0
forked from pool/python-numpy

Accepting request 1186789 from home:bnavigator:branches:devel:languages:python:numeric

- Fix numpy-config path tests, provide reason for failing meson
  test
- Remove mistaken pycache rpmlint filter

OBS-URL: https://build.opensuse.org/request/show/1186789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=162
This commit is contained in:
2024-07-16 12:07:33 +00:00
committed by Git OBS Bridge
parent c73e3af979
commit 286df3ecab
3 changed files with 17 additions and 10 deletions

View File

@@ -284,11 +284,18 @@ EOF
%check
# https://numpy.org/doc/stable/dev/development_environment.html#running-tests
%if %{without hpc}
export PATH="%{buildroot}%{_bindir}:$PATH"
mkdir -p testing
cp pytest.ini testing/
pushd testing
%python_flavored_alternatives
%if %{with libalternatives}
%{python_expand #
for b in f2py numpy-config; do
ln -s %{buildroot}%{_bindir}/$b-%{$python_bin_suffix} build/flavorbin/$b
done
}
%endif
# flaky tests
test_failok+=" or test_structured_object_indexing"
@@ -343,11 +350,7 @@ test_failok+=" or (test_umath and test_fpclass)"
test_failok+=" or (test_numeric and TestBoolCmp and test_float)"
test_failok+=" or (test_umath and test_fp_noncontiguous)"
%endif
# These tests fail due to being unable to run numpy-config directly in the
# source tree
test_failok+=" or test_configtool_cflags or test_configtool_pkgconfigdir"
test_failok+=" or test_configtool_version"
# ??
# The meson command is always on the primary python and wants to import numpy from there
test_failok+=" or test_limited_api"
echo "
@@ -378,7 +381,7 @@ popd
%python_install_alternative f2py numpy-config
%postun
%python_uninstall_alternative f2py numpy-config
%python_uninstall_alternative f2py
%endif
%files %{python_files}