From 6ba4762803bf5b3d2326692580e761cf86182d68 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 19 Feb 2022 18:37:43 -0500 Subject: [PATCH] Skip rebuild when running tests Instead use the build we just created. --- numpy.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/numpy.spec b/numpy.spec index 4839ad3..901338b 100644 --- a/numpy.spec +++ b/numpy.spec @@ -146,9 +146,10 @@ ln -s %{python3_sitearch}/%{name}/core/include/numpy/ %{buildroot}%{_includedir} %check %if %{with tests} +export PYTHONPATH=%{buildroot}%{python3_sitearch} # This test is unnecessary now that ppc64le has switched long doubles to IEEE format. # https://github.com/numpy/numpy/issues/21094 -python3 runtests.py -- -ra -k 'not test_ppc64_ibm_double_double128' +python3 runtests.py --no-build -- -ra -k 'not test_ppc64_ibm_double_double128' %endif