mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
sagemath: rebuild for python 3.12
This commit is contained in:
parent
645d2e93ca
commit
ee101c62c6
4 changed files with 1782 additions and 3 deletions
29
srcpkgs/sagemath/patches/36403-00pre.patch
Normal file
29
srcpkgs/sagemath/patches/36403-00pre.patch
Normal 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'
|
1744
srcpkgs/sagemath/patches/36407-python_3.12.patch
Normal file
1744
srcpkgs/sagemath/patches/36407-python_3.12.patch
Normal file
File diff suppressed because it is too large
Load diff
|
@ -33,5 +33,11 @@ get_pr 36006 "gmp 6.3.0"
|
||||||
# merged in 10.2.beta3
|
# merged in 10.2.beta3
|
||||||
get_pr 36235 "ecl 23.9.9"
|
get_pr 36235 "ecl 23.9.9"
|
||||||
|
|
||||||
# positive review
|
# merged in 10.2.beta4
|
||||||
get_pr 36279 "matplotlib 3.8.0"
|
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"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'sagemath'
|
# Template file for 'sagemath'
|
||||||
pkgname=sagemath
|
pkgname=sagemath
|
||||||
version=10.1
|
version=10.1
|
||||||
revision=3
|
revision=4
|
||||||
build_wrksrc=pkgs/sagemath-standard
|
build_wrksrc=pkgs/sagemath-standard
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
_bindir=/usr/lib/sagemath/$version/bin
|
_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
|
python3-sympy python3-traitlets sage-data-combinatorial_designs
|
||||||
sage-data-conway_polynomials sage-data-elliptic_curves sage-data-graphs
|
sage-data-conway_polynomials sage-data-elliptic_curves sage-data-graphs
|
||||||
sage-data-polytopes_db sympow tachyon threejs-sage"
|
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"
|
short_desc="Open source mathematics software"
|
||||||
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
|
|
Loading…
Add table
Reference in a new issue