summaryrefslogtreecommitdiff
path: root/libre/sagemath/sagemath-cython0.25.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-08 22:25:39 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-08 22:26:40 -0300
commitea00372c0ba6243c14ccd255047b3cb95aae1ae3 (patch)
treeea5d98c7958556c261bfa443a8fca68d44d25272 /libre/sagemath/sagemath-cython0.25.patch
parent54c871db77b4a439fcb22ed078e737eb5eba20c2 (diff)
sagemath-7.4-3.parabola1: pynac 0.7.0 rebuild
Diffstat (limited to 'libre/sagemath/sagemath-cython0.25.patch')
-rw-r--r--libre/sagemath/sagemath-cython0.25.patch30
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,
+ })
+