sagemath: rebuild for python 3.12

This commit is contained in:
Gonzalo Tornaría 2023-10-04 23:54:39 -03:00 committed by Andrew J. Hesford
parent 645d2e93ca
commit ee101c62c6
4 changed files with 1782 additions and 3 deletions

View file

@ -0,0 +1,29 @@
Minor patch so that #36403 applies cleanly over sagemath 10.1
diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx
index 2053bca80c3..86aca6e00d8 100644
--- a/src/sage/matrix/matrix2.pyx
+++ b/src/sage/matrix/matrix2.pyx
@@ -15123,7 +15302,8 @@ cdef class Matrix(Matrix1):
sage: N.conjugate_transpose()
Traceback (most recent call last):
...
- AttributeError: 'sage.rings.finite_rings.integer_mod.IntegerMod_int' object has no attribute 'conjugate'
+ AttributeError: 'sage.rings.finite_rings.integer_mod.IntegerMod_int' object
+ has no attribute 'conjugate'
"""
# limited testing on a 1000 x 1000 matrix over CC:
# transpose is fast, conjugate is slow
diff --git a/src/sage/cpython/getattr.pyx b/src/sage/cpython/getattr.pyx
index 525ea5aa934..52afed49d64 100644
--- a/src/sage/cpython/getattr.pyx
+++ b/src/sage/cpython/getattr.pyx
@@ -55,7 +55,7 @@ cdef class AttributeErrorMessage:
...
AttributeError: 'sage.rings.integer.Integer' object has no attribute 'bla'
sage: x = polygen(ZZ, 'x')
- sage: QQ[x].gen().bla # optional - sage.libs.flint
+ sage: QQ[x].gen().bla # needs sage.libs.flint
Traceback (most recent call last):
...
AttributeError: 'sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint' object has no attribute 'bla'

File diff suppressed because it is too large Load diff

View file

@ -33,5 +33,11 @@ get_pr 36006 "gmp 6.3.0"
# merged in 10.2.beta3
get_pr 36235 "ecl 23.9.9"
# positive review
# merged in 10.2.beta4
get_pr 36279 "matplotlib 3.8.0"
# positive review
#get_pr 36403 "python 3.12" # included in #36407
# needs review
get_pr 36407 "python 3.12"

View file

@ -1,7 +1,7 @@
# Template file for 'sagemath'
pkgname=sagemath
version=10.1
revision=3
revision=4
build_wrksrc=pkgs/sagemath-standard
build_style=python3-module
_bindir=/usr/lib/sagemath/$version/bin
@ -26,7 +26,7 @@ depends="eclib-devel fflas-ffpack flintlib-devel gcc-fortran gd-devel
python3-sympy python3-traitlets sage-data-combinatorial_designs
sage-data-conway_polynomials sage-data-elliptic_curves sage-data-graphs
sage-data-polytopes_db sympow tachyon threejs-sage"
checkdepends="$depends pythran python3-Sphinx"
checkdepends="$depends pythran python3-Sphinx meson"
short_desc="Open source mathematics software"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="GPL-2.0-or-later"