diff --git a/python-numpy.changes b/python-numpy.changes index 914444e..c62d1ca 100644 --- a/python-numpy.changes +++ b/python-numpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 19 12:52:51 UTC 2019 - Tomáš Chvátal + +- Enable testsuite + ------------------------------------------------------------------- Tue Feb 5 22:14:25 UTC 2019 - Todd R diff --git a/python-numpy.spec b/python-numpy.spec index adfc130..943bef0 100644 --- a/python-numpy.spec +++ b/python-numpy.spec @@ -200,7 +200,7 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %if %{without hpc} -%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite +#%%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite %else @@ -245,6 +245,12 @@ EOF } %endif +%check +pushd doc &> /dev/null +export PYTHONDONTWRITEBYTECODE=1 +%python_expand PYTHONPATH="%{buildroot}%{$python_sitearch}" PATH="%{buildroot}%{_bindir}:$PATH" $python -m pytest -v --pyargs numpy +popd &> /dev/null + %files %{python_files} %defattr(-,root,root) %doc *.txt