Adapt to changes in python 3.7.

This commit is contained in:
Jerry James 2018-06-27 07:21:49 -06:00
parent fca15a416a
commit be6d2913d6
2 changed files with 14 additions and 0 deletions

11
sympy-python3.patch Normal file
View File

@ -0,0 +1,11 @@
--- python3/sympy/assumptions/sathandlers.py.orig 2017-07-26 16:46:12.000000000 -0600
+++ python3/sympy/assumptions/sathandlers.py 2018-06-27 07:04:03.105607298 -0600
@@ -1,6 +1,7 @@
from __future__ import print_function, division
-from collections import MutableMapping, defaultdict
+from collections import defaultdict
+from collections.abc import MutableMapping
from sympy.core import (Add, Mul, Pow, Integer, Number, NumberSymbol,)
from sympy.core.numbers import ImaginaryUnit

View File

@ -5,6 +5,8 @@ Summary: A Python library for symbolic mathematics
License: BSD
URL: http://sympy.org/
Source0: https://github.com/%{name}/%{name}/archive/%{name}-%{version}.tar.gz
# Adapt to changes in python 3.7
Patch0: %{name}-python3.patch
BuildArch: noarch
@ -120,6 +122,7 @@ sed -i 's/StrictVersion/LooseVersion/g' %{sympydir}/sympy/external/importtools.p
# Make a copy for building the python3 version
cp -a %{sympydir} python3
%patch0
# One test gets an extra warning with python3
sed -i '/Adaptive meshing could not be applied/d' \