[arch-commits] Commit in sagemath/trunk (sagemath-mpmath.patch)

Antonio Rojas arojas at gemini.archlinux.org
Sun Nov 7 10:12:03 UTC 2021


    Date: Sunday, November 7, 2021 @ 10:12:03
  Author: arojas
Revision: 1038464

Backport patch to make it work with vanilla mpmath

Added:
  sagemath/trunk/sagemath-mpmath.patch

-----------------------+
 sagemath-mpmath.patch |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

Added: sagemath-mpmath.patch
===================================================================
--- sagemath-mpmath.patch	                        (rev 0)
+++ sagemath-mpmath.patch	2021-11-07 10:12:03 UTC (rev 1038464)
@@ -0,0 +1,14 @@
+diff --git a/src/sage/env.py b/src/sage/env.py
+index e5af037..40ace13 100644
+--- a/src/sage/env.py
++++ b/src/sage/env.py
+@@ -237,6 +237,9 @@ LIBSINGULAR_PATH = var("LIBSINGULAR_PATH", "libSingular.so")
+ OPENMP_CFLAGS = var("OPENMP_CFLAGS", "")
+ OPENMP_CXXFLAGS = var("OPENMP_CXXFLAGS", "")
+ 
++# Make sure mpmath uses Sage types
++os.environ['MPMATH_SAGE'] = '1'
++
+ # misc
+ SAGE_BANNER = var("SAGE_BANNER", "")
+ SAGE_IMPORTALL = var("SAGE_IMPORTALL", "yes")



More information about the arch-commits mailing list