diff --git a/sympy.spec b/sympy.spec index b412ca5..b650f0a 100644 --- a/sympy.spec +++ b/sympy.spec @@ -99,6 +99,12 @@ done # The classic sphinx theme is explicitly needed. sed -i "/html_style/ahtml_theme = 'classic'" %{sympydir}/doc/src/conf.py +# 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 + # Make a copy for building the python3 version cp -a %{sympydir} python3