Date: Thursday, August 31, 2017 @ 07:49:44 Author: arojas Revision: 255154
Add missing patch Added: sagemath/trunk/sagemath-cython-0.26.patch ----------------------------+ sagemath-cython-0.26.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) Added: sagemath-cython-0.26.patch =================================================================== --- sagemath-cython-0.26.patch (rev 0) +++ sagemath-cython-0.26.patch 2017-08-31 07:49:44 UTC (rev 255154) @@ -0,0 +1,26 @@ +diff --git a/src/setup.py b/src/setup.py +index 2215379..ddca1eb 100755 +--- a/src/setup.py ++++ b/src/setup.py +@@ -95,7 +95,12 @@ library_dirs = [os.path.join(SAGE_LOCAL, "lib")] + + # Manually add -fno-strict-aliasing, which is needed to compile Cython + # and disappears from the default flags if the user has set CFLAGS. +-extra_compile_args = [ "-fno-strict-aliasing" ] ++# ++# Add -DCYTHON_CLINE_IN_TRACEBACK=1 which causes the .c line number to ++# always appear in exception tracebacks (by default, this is a runtime ++# setting in Cython which causes some overhead every time an exception ++# is raised). ++extra_compile_args = ["-fno-strict-aliasing", "-DCYTHON_CLINE_IN_TRACEBACK=1"] + extra_link_args = [ ] + + DEVEL = False +@@ -336,6 +341,7 @@ class sage_build_cython(Command): + + # Cython compiler directives + self.cython_directives = dict( ++ auto_pickle=False, + autotestdict=False, + cdivision=True, + embedsignature=True,
