Disable parallel test execution, OpenBLAS related fixes
This commit is contained in:
parent
c6f0b45631
commit
4e4627bca5
49
scipy.spec
49
scipy.spec
@ -11,7 +11,7 @@
|
|||||||
Summary: Scientific Tools for Python
|
Summary: Scientific Tools for Python
|
||||||
Name: scipy
|
Name: scipy
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
# BSD -- whole package except:
|
# BSD -- whole package except:
|
||||||
@ -27,15 +27,10 @@ BuildRequires: python2-pytest-xdist
|
|||||||
BuildRequires: python2-pytest-timeout
|
BuildRequires: python2-pytest-timeout
|
||||||
BuildRequires: fftw-devel, blas-devel, lapack-devel, suitesparse-devel
|
BuildRequires: fftw-devel, blas-devel, lapack-devel, suitesparse-devel
|
||||||
%ifarch %{openblas_arches}
|
%ifarch %{openblas_arches}
|
||||||
%ifnarch ppc64
|
|
||||||
# prefer atlas on ppc64 big endian
|
|
||||||
BuildRequires: openblas-devel
|
BuildRequires: openblas-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: atlas-devel
|
BuildRequires: atlas-devel
|
||||||
%endif
|
%endif
|
||||||
%else
|
|
||||||
BuildRequires: atlas-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: gcc-gfortran, swig
|
BuildRequires: gcc-gfortran, swig
|
||||||
BuildRequires: qhull-devel
|
BuildRequires: qhull-devel
|
||||||
|
|
||||||
@ -112,6 +107,12 @@ amd_libs = amd
|
|||||||
library_dirs = %{_libdir}
|
library_dirs = %{_libdir}
|
||||||
include_dirs = /usr/include/suitesparse
|
include_dirs = /usr/include/suitesparse
|
||||||
umfpack_libs = umfpack
|
umfpack_libs = umfpack
|
||||||
|
|
||||||
|
%ifarch %{openblas_arches}
|
||||||
|
[openblas]
|
||||||
|
library_dirs = %{_libdir}
|
||||||
|
openblas_libs = openblasp
|
||||||
|
%endif
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
@ -120,11 +121,7 @@ EOF
|
|||||||
env CFLAGS="$RPM_OPT_FLAGS" \
|
env CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
%ifarch %{openblas_arches}
|
%ifarch %{openblas_arches}
|
||||||
%ifnarch ppc64
|
|
||||||
OPENBLAS=%{_libdir} \
|
OPENBLAS=%{_libdir} \
|
||||||
%else
|
|
||||||
ATLAS=%{_libdir}/atlas \
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
ATLAS=%{_libdir}/atlas \
|
ATLAS=%{_libdir}/atlas \
|
||||||
%endif
|
%endif
|
||||||
@ -136,11 +133,7 @@ env CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
env CFLAGS="$RPM_OPT_FLAGS" \
|
env CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
%ifarch %{openblas_arches}
|
%ifarch %{openblas_arches}
|
||||||
%ifnarch ppc64
|
|
||||||
OPENBLAS=%{_libdir} \
|
OPENBLAS=%{_libdir} \
|
||||||
%else
|
|
||||||
ATLAS=%{_libdir}/atlas \
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
ATLAS=%{_libdir}/atlas \
|
ATLAS=%{_libdir}/atlas \
|
||||||
%endif
|
%endif
|
||||||
@ -156,11 +149,7 @@ env CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
env CFLAGS="$RPM_OPT_FLAGS" \
|
env CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
%ifarch %{openblas_arches}
|
%ifarch %{openblas_arches}
|
||||||
%ifnarch ppc64
|
|
||||||
OPENBLAS=%{_libdir} \
|
OPENBLAS=%{_libdir} \
|
||||||
%else
|
|
||||||
ATLAS=%{_libdir}/atlas \
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
ATLAS=%{_libdir}/atlas \
|
ATLAS=%{_libdir}/atlas \
|
||||||
%endif
|
%endif
|
||||||
@ -171,11 +160,7 @@ env CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
env CFLAGS="$RPM_OPT_FLAGS" \
|
env CFLAGS="$RPM_OPT_FLAGS" \
|
||||||
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
||||||
%ifarch %{openblas_arches}
|
%ifarch %{openblas_arches}
|
||||||
%ifnarch ppc64
|
|
||||||
OPENBLAS=%{_libdir} \
|
OPENBLAS=%{_libdir} \
|
||||||
%else
|
|
||||||
ATLAS=%{_libdir}/atlas \
|
|
||||||
%endif
|
|
||||||
%else
|
%else
|
||||||
ATLAS=%{_libdir}/atlas \
|
ATLAS=%{_libdir}/atlas \
|
||||||
%endif
|
%endif
|
||||||
@ -185,16 +170,14 @@ env CFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
mkdir test3
|
pushd %{buildroot}/%{python3_sitearch}
|
||||||
cd test3
|
py.test-%{python3_version} --timeout=300 -k "not test_denormals" scipy || :
|
||||||
PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} \
|
popd
|
||||||
%__python3 -c "import scipy; scipy.test('full', verbose=2, extra_argv=['-n $(getconf _NPROCESSORS_ONLN)', '--timeout=300'])" || :
|
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
mkdir test2
|
pushd %{buildroot}/%{python2_sitearch}
|
||||||
cd test2
|
py.test-%{python2_version} --timeout=300 -k "not test_denormals" scipy || :
|
||||||
PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitearch} \
|
popd
|
||||||
%__python2 -c "import scipy; scipy.test('full', verbose=2, extra_argv=['-n $(getconf _NPROCESSORS_ONLN)', '--timeout=300'])" || :
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-scipy
|
%files -n python2-scipy
|
||||||
@ -211,6 +194,12 @@ PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitearch} \
|
|||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 31 2017 Christian Dersch <lupinix@mailbox.org> - 1.0.0-2
|
||||||
|
- Use openblas where available https://fedoraproject.org/wiki/Changes/OpenBLAS_as_default_BLAS
|
||||||
|
- Remove ppc64 hackery for OpenBLAS
|
||||||
|
- Don't run tests in parallel as pytest crashes
|
||||||
|
- Don't run test_denormals as it tends to stuck
|
||||||
|
|
||||||
* Thu Oct 26 2017 Thomas Spura <tomspur@fedoraproject.org> - 1.0.0-1
|
* Thu Oct 26 2017 Thomas Spura <tomspur@fedoraproject.org> - 1.0.0-1
|
||||||
- update to 1.0.0 and use pytest instead of nose
|
- update to 1.0.0 and use pytest instead of nose
|
||||||
- use timeout during parallel %%check
|
- use timeout during parallel %%check
|
||||||
|
Loading…
Reference in New Issue
Block a user