diff options
Diffstat (limited to 'libre/sagemath/sagemath-cython0.25.patch')
-rw-r--r-- | libre/sagemath/sagemath-cython0.25.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libre/sagemath/sagemath-cython0.25.patch b/libre/sagemath/sagemath-cython0.25.patch new file mode 100644 index 000000000..b6bcfa5ef --- /dev/null +++ b/libre/sagemath/sagemath-cython0.25.patch @@ -0,0 +1,30 @@ +--- a/src/setup.py 2016-11-05 19:34:44.701025334 +0000 ++++ b/src/setup.py 2016-11-05 19:46:00.706210289 +0000 +@@ -562,16 +562,6 @@ + import Cython.Compiler.Options + import Cython.Compiler.Main + +- # Sage uses these directives (mostly for historical reasons). +- Cython.Compiler.Options.embed_pos_in_docstring = True +- Cython.Compiler.Options.directive_defaults['autotestdict'] = False +- Cython.Compiler.Options.directive_defaults['cdivision'] = True +- Cython.Compiler.Options.directive_defaults['fast_getattr'] = True +- # The globals() builtin in Cython was fixed to return to the current scope, +- # but Sage relies on the broken behavior of returning to the nearest +- # enclosing Python scope (e.g. to perform variable injection). +- Cython.Compiler.Options.old_style_globals = True +- + debug = False + if os.environ.get('SAGE_DEBUG', None) != 'no': + print('Enabling Cython debugging support') +@@ -608,7 +598,10 @@ + force=force, + aliases=aliases, + compiler_directives={ ++ 'autotestdict': False, ++ 'cdivision': True, + 'embedsignature': True, ++ 'fast_getattr': True, + 'profile': profile, + }) + |