diff --git a/sympy.spec b/sympy.spec index 79eda25..233c124 100644 --- a/sympy.spec +++ b/sympy.spec @@ -109,9 +109,16 @@ if [ "%{maxpyint}" = "7fffffff" ]; then %{sympydir}/sympy/polys/tests/test_rootoftools.py fi +# Allow building with a numpy that has a release candidate version number +sed -i 's/StrictVersion/LooseVersion/g' %{sympydir}/sympy/external/importtools.py + # Make a copy for building the python3 version cp -a %{sympydir} python3 +# One test gets an extra warning with python3 +sed -i '/Adaptive meshing could not be applied/d' \ + python3/sympy/plotting/tests/test_plot_implicit.py + # Do not depend on env for fil in $(grep -rl "^#\![[:blank:]]*%{_bindir}/env" %{sympydir}); do sed -i.orig 's,^\(#\![[:blank:]]*%{_bindir}/\)env python,\1python2,' $fil