- Enable testsuite
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
10e9b09e3f
commit
4590f7842a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user