mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-10 23:18:51 -04:00
- Unbundle widgetsnbextension (bz 1856311) - Unbundle mathjax fonts (bz 1875606) - Do not require the -doc subpackage from the main package (bz 1867123) - Drop upstreamed patches: -ecl, -fes, -includes, -sagetex, -sigfpe, -sympy
116 lines
5 KiB
Diff
116 lines
5 KiB
Diff
diff -up src/sage/env.py.orig src/sage/env.py
|
|
--- src/sage/env.py.orig 2020-10-30 16:10:20.089999891 -0600
|
|
+++ src/sage/env.py 2020-10-31 12:11:19.256615196 -0600
|
|
@@ -391,7 +391,7 @@ def cython_aliases():
|
|
aliases = {}
|
|
|
|
for lib in ['fflas-ffpack', 'givaro', 'gsl', 'linbox', 'Singular',
|
|
- 'libpng', 'gdlib', 'm4ri', 'zlib', 'cblas', 'lapack']:
|
|
+ 'libpng', 'gdlib', 'm4ri', 'zlib', 'openblas']:
|
|
var = lib.upper().replace("-", "") + "_"
|
|
if lib == 'zlib':
|
|
aliases[var + "CFLAGS"] = ""
|
|
diff -up src/sage/matrix/matrix_integer_dense.pyx.orig src/sage/matrix/matrix_integer_dense.pyx
|
|
--- src/sage/matrix/matrix_integer_dense.pyx.orig 2020-10-30 11:52:49.737274785 -0600
|
|
+++ src/sage/matrix/matrix_integer_dense.pyx 2020-10-31 17:58:56.243063508 -0600
|
|
@@ -1,8 +1,8 @@
|
|
# -*- coding: utf-8 -*-
|
|
# distutils: extra_compile_args = M4RI_CFLAGS
|
|
-# distutils: libraries = iml ntl gmp m CBLAS_LIBRARIES
|
|
-# distutils: library_dirs = CBLAS_LIBDIR
|
|
-# distutils: include_dirs = M4RI_INCDIR CBLAS_INCDIR
|
|
+# distutils: libraries = iml ntl gmp m OPENBLAS_LIBRARIES
|
|
+# distutils: library_dirs = OPENBLAS_LIBDIR
|
|
+# distutils: include_dirs = M4RI_INCDIR OPENBLAS_INCDIR
|
|
"""
|
|
Dense matrices over the integer ring
|
|
|
|
diff -up src/sage/matrix/matrix_modn_dense_double.pyx.orig src/sage/matrix/matrix_modn_dense_double.pyx
|
|
--- src/sage/matrix/matrix_modn_dense_double.pyx.orig 2020-10-24 11:37:59.000000000 -0600
|
|
+++ src/sage/matrix/matrix_modn_dense_double.pyx 2020-11-05 15:54:31.940411433 -0700
|
|
@@ -1,7 +1,7 @@
|
|
# distutils: language = c++
|
|
-# distutils: libraries = CBLAS_LIBRARIES
|
|
-# distutils: library_dirs = CBLAS_LIBDIR
|
|
-# distutils: include_dirs = CBLAS_INCDIR
|
|
+# distutils: libraries = OPENBLAS_LIBRARIES
|
|
+# distutils: library_dirs = OPENBLAS_LIBDIR
|
|
+# distutils: include_dirs = OPENBLAS_INCDIR
|
|
# distutils: extra_compile_args = -D_XPG6
|
|
"""
|
|
Dense matrices over `\ZZ/n\ZZ` for `n < 2^{23}` using LinBox's ``Modular<double>``
|
|
diff -up src/sage/matrix/matrix_modn_dense_float.pyx.orig src/sage/matrix/matrix_modn_dense_float.pyx
|
|
--- src/sage/matrix/matrix_modn_dense_float.pyx.orig 2020-11-05 15:54:31.940411433 -0700
|
|
+++ src/sage/matrix/matrix_modn_dense_float.pyx 2020-11-05 15:55:38.853405001 -0700
|
|
@@ -1,7 +1,7 @@
|
|
# distutils: language = c++
|
|
-# distutils: libraries = CBLAS_LIBRARIES
|
|
-# distutils: library_dirs = CBLAS_LIBDIR
|
|
-# distutils: include_dirs = CBLAS_INCDIR
|
|
+# distutils: libraries = OPENBLAS_LIBRARIES
|
|
+# distutils: library_dirs = OPENBLAS_LIBDIR
|
|
+# distutils: include_dirs = OPENBLAS_INCDIR
|
|
"""
|
|
Dense matrices over `\ZZ/n\ZZ` for `n < 2^{11}` using LinBox's ``Modular<float>``
|
|
|
|
diff -up src/sage/matrix/matrix_rational_dense.pyx.orig src/sage/matrix/matrix_rational_dense.pyx
|
|
--- src/sage/matrix/matrix_rational_dense.pyx.orig 2020-10-30 11:34:26.031980257 -0600
|
|
+++ src/sage/matrix/matrix_rational_dense.pyx 2020-10-31 17:58:10.490106273 -0600
|
|
@@ -1,7 +1,7 @@
|
|
# distutils: extra_compile_args = -D_XPG6 M4RI_CFLAGS
|
|
-# distutils: libraries = iml ntl m CBLAS_LIBRARIES
|
|
-# distutils: library_dirs = CBLAS_LIBDIR
|
|
-# distutils: include_dirs = M4RI_INCDIR CBLAS_INCDIR
|
|
+# distutils: libraries = iml ntl m OPENBLAS_LIBRARIES
|
|
+# distutils: library_dirs = OPENBLAS_LIBDIR
|
|
+# distutils: include_dirs = M4RI_INCDIR OPENBLAS_INCDIR
|
|
|
|
"""
|
|
Dense matrices over the rational field
|
|
diff -up src/sage/misc/cython.py.orig src/sage/misc/cython.py
|
|
--- src/sage/misc/cython.py.orig 2020-10-30 16:08:06.039158996 -0600
|
|
+++ src/sage/misc/cython.py 2020-10-30 16:24:09.037024792 -0600
|
|
@@ -35,10 +35,9 @@ from sage.cpython.string import str_to_b
|
|
|
|
|
|
# CBLAS can be one of multiple implementations
|
|
-cblas_pc = pkgconfig.parse('cblas')
|
|
-cblas_libs = list(cblas_pc['libraries'])
|
|
-cblas_library_dirs = list(cblas_pc['library_dirs'])
|
|
-cblas_include_dirs = list(cblas_pc['include_dirs'])
|
|
+cblas_libs = ['openblas']
|
|
+cblas_library_dirs = ['/usr/lib']
|
|
+cblas_include_dirs = ['/usr/include/openblas']
|
|
|
|
standard_libs = [
|
|
'mpfr', 'gmp', 'gmpxx', 'pari', 'm',
|
|
diff -up src/sage_setup/library_order.py.orig src/sage_setup/library_order.py
|
|
--- src/sage_setup/library_order.py.orig 2020-10-24 11:37:59.000000000 -0600
|
|
+++ src/sage_setup/library_order.py 2020-10-31 12:11:54.313540360 -0600
|
|
@@ -10,20 +10,18 @@ import os
|
|
import pkgconfig
|
|
|
|
# CBLAS can be one of multiple implementations
|
|
-cblas_pc = pkgconfig.parse('cblas')
|
|
-cblas_libs = cblas_pc['libraries']
|
|
-cblas_library_dirs = cblas_pc['library_dirs']
|
|
-cblas_include_dirs = cblas_pc['include_dirs']
|
|
+cblas_libs = ['openblas']
|
|
+cblas_library_dirs = ['/usr/lib']
|
|
+cblas_include_dirs = ['/usr/include/openblas']
|
|
|
|
# TODO: Remove Cygwin hack by installing a suitable cblas.pc
|
|
if os.path.exists('/usr/lib/libblas.dll.a'):
|
|
cblas_libs = ['gslcblas']
|
|
|
|
# LAPACK can be one of multiple implementations
|
|
-lapack_pc = pkgconfig.parse('lapack')
|
|
-lapack_libs = lapack_pc['libraries']
|
|
-lapack_library_dirs = lapack_pc['library_dirs']
|
|
-lapack_include_dirs = lapack_pc['include_dirs']
|
|
+lapack_libs = ['openblas']
|
|
+lapack_library_dirs = ['/usr/lib']
|
|
+lapack_include_dirs = ['/usr/include/openblas']
|
|
|
|
# GD image library
|
|
gd_pc = pkgconfig.parse('gdlib')
|