Blame SOURCES/sympy-python3.patch

5a83ed
--- sympy-sympy-1.4/sympy/utilities/autowrap.py.orig	2019-04-09 18:29:25.000000000 -0600
5a83ed
+++ sympy-sympy-1.4/sympy/utilities/autowrap.py	2019-04-17 14:34:26.580374579 -0600
5a83ed
@@ -229,6 +229,8 @@ except ImportError:
5a83ed
     from distutils.extension import Extension
5a83ed
 from Cython.Build import cythonize
5a83ed
 cy_opts = {cythonize_options}
5a83ed
+if 'language_level' not in cy_opts or cy_opts['language_level'] == None:
5a83ed
+    cy_opts['language_level'] = 3
5a83ed
 {np_import}
5a83ed
 ext_mods = [Extension(
5a83ed
     {ext_args},
5a83ed
--- sympy-sympy-1.4/sympy/utilities/_compilation/compilation.py.orig	2019-04-09 18:29:25.000000000 -0600
5a83ed
+++ sympy-sympy-1.4/sympy/utilities/_compilation/compilation.py	2019-04-17 14:34:26.581374576 -0600
5a83ed
@@ -291,6 +291,8 @@ def simple_cythonize(src, destdir=None,
5a83ed
     try:
5a83ed
         cy_options = CompilationOptions(default_options)
5a83ed
         cy_options.__dict__.update(cy_kwargs)
5a83ed
+        if cy_options.__dict__['language_level'] == None:
5a83ed
+            cy_options.__dict__['language_level'] = 3
5a83ed
         cy_result = cy_compile([src], cy_options)
5a83ed
         if cy_result.num_errors > 0:
5a83ed
             raise ValueError("Cython compilation failed.")
5a83ed
--- sympy-sympy-1.4/sympy/utilities/tests/test_autowrap.py.orig	2019-04-09 18:29:25.000000000 -0600
5a83ed
+++ sympy-sympy-1.4/sympy/utilities/tests/test_autowrap.py	2019-04-17 14:34:26.581374576 -0600
5a83ed
@@ -100,6 +100,8 @@ except ImportError:
5a83ed
     from distutils.extension import Extension
5a83ed
 from Cython.Build import cythonize
5a83ed
 cy_opts = {}
5a83ed
+if 'language_level' not in cy_opts or cy_opts['language_level'] == None:
5a83ed
+    cy_opts['language_level'] = 3
5a83ed
 
5a83ed
 ext_mods = [Extension(
5a83ed
     'wrapper_module_%(num)s', ['wrapper_module_%(num)s.pyx', 'wrapped_code_%(num)s.c'],
5a83ed
@@ -138,6 +140,8 @@ except ImportError:
5a83ed
     from distutils.extension import Extension
5a83ed
 from Cython.Build import cythonize
5a83ed
 cy_opts = {'compiler_directives': {'boundscheck': False}}
5a83ed
+if 'language_level' not in cy_opts or cy_opts['language_level'] == None:
5a83ed
+    cy_opts['language_level'] = 3
5a83ed
 
5a83ed
 ext_mods = [Extension(
5a83ed
     'wrapper_module_%(num)s', ['wrapper_module_%(num)s.pyx', 'wrapped_code_%(num)s.c'],
5a83ed
@@ -164,6 +168,8 @@ except ImportError:
5a83ed
     from distutils.extension import Extension
5a83ed
 from Cython.Build import cythonize
5a83ed
 cy_opts = {'compiler_directives': {'boundscheck': False}}
5a83ed
+if 'language_level' not in cy_opts or cy_opts['language_level'] == None:
5a83ed
+    cy_opts['language_level'] = 3
5a83ed
 import numpy as np
5a83ed
 
5a83ed
 ext_mods = [Extension(