Disable testing on 32-bit systems; too many tests need 64-bit integers.
This commit is contained in:
parent
53a6ccd846
commit
655cd53030
11
sympy.spec
11
sympy.spec
@ -93,12 +93,6 @@ HTML documentation for sympy.
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{name}-%{version}
|
||||
|
||||
# If running on a 32-bit system, disable a test that requires 64-bit integers.
|
||||
%global maxpyint %(python3 -c 'import sys;print("%x" % sys.maxsize)')
|
||||
if [ "%{maxpyint}" = "7fffffff" ]; then
|
||||
sed -i '/issue 6393/,/assert b == -d/d' sympy/polys/tests/test_rootoftools.py
|
||||
fi
|
||||
|
||||
# Do not depend on env
|
||||
for fil in $(grep -rl "^#\![[:blank:]]*%{_bindir}/env" .); do
|
||||
sed -i.orig 's,^\(#\![[:blank:]]*%{_bindir}/\)env python,\1python3,' $fil
|
||||
@ -140,6 +134,9 @@ rm -fr %{buildroot}%{_docdir}/%{name}-doc/i18n
|
||||
# Try to get rid of pyc files, which aren't useful for documentation
|
||||
find examples/ -name '*.py[co]' -print -delete
|
||||
|
||||
# Too many tests now assume that native 64-bit integers are available.
|
||||
# Do not run tests on 32-bit systems.
|
||||
%ifnarch %{arm} %{ix86}
|
||||
%check
|
||||
let "dnum = $RANDOM % 90 + 10"
|
||||
# Split into many small chunks to reduce waiting in the end-game
|
||||
@ -149,6 +146,7 @@ xvfb-run -a -n $dnum \
|
||||
parallel %{?_smp_mflags} \
|
||||
%{__python3} bin/test -v --split {}/$jobs \
|
||||
::: $(bash -c "echo {1..$jobs}")
|
||||
%endif
|
||||
|
||||
%files -n python3-%{name}
|
||||
%doc AUTHORS README.md
|
||||
@ -177,6 +175,7 @@ xvfb-run -a -n $dnum \
|
||||
* Fri May 29 2020 Jerry James <loganjerry@gmail.com> - 1.6-1
|
||||
- Version 1.6
|
||||
- Drop upstreamed -doc and -sample-set patches
|
||||
- Disable testing on 32-bit systems; too many tests need 64-bit integers
|
||||
|
||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-4
|
||||
- Rebuilt for Python 3.9
|
||||
|
Loading…
Reference in New Issue
Block a user