From 9a1773a26f792ac7901405df5c5d6e0742e65ed0 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Sat, 11 Aug 2018 23:13:04 -0400 Subject: [PATCH] Set PATH so that f2py works. --- numpy.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/numpy.spec b/numpy.spec index a13b020..5daa9f8 100644 --- a/numpy.spec +++ b/numpy.spec @@ -234,13 +234,13 @@ ln -s %{python2_sitearch}/%{name}/core/include/numpy/ %{buildroot}/usr/include/n %check pushd doc &> /dev/null -PYTHONPATH="%{buildroot}%{python2_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ +PYTHONPATH="%{buildroot}%{python2_sitearch}" PATH="%{buildroot}%{_bindir}:$PATH" PYTHONDONTWRITEBYTECODE=1 \ %{__python2} -m pytest -v --pyargs numpy popd &> /dev/null %if 0%{?with_python3} pushd doc &> /dev/null -PYTHONPATH="%{buildroot}%{python3_sitearch}" PYTHONDONTWRITEBYTECODE=1 \ +PYTHONPATH="%{buildroot}%{python3_sitearch}" PATH="%{buildroot}%{_bindir}:$PATH" PYTHONDONTWRITEBYTECODE=1 \ %{__python3} -m pytest -v --pyargs numpy popd &> /dev/null @@ -317,6 +317,7 @@ popd &> /dev/null * Wed Aug 29 2018 Elliott Sales de Andrade - 1:1.15.1-2 - Switch to pytest for running tests during check - Stop ignoring failures when running tests +- Set PATH in check so that f2py tests work - Update docs to match release * Wed Aug 22 2018 Elliott Sales de Andrade - 1:1.15.1-1