summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-10-08 22:52:14 +0300
committerGitHub <noreply@github.com>2024-10-08 22:52:14 +0300
commit5959be577fa776e5ec6e6ffd88954488571242d7 (patch)
treec762cc249d9f4d4fa4fb67af59b0eba8820c4ff7
parent9b5e508d15f0b8ed2b7078b3eef04f3b0ef50d4c (diff)
downloadspack-5959be577fa776e5ec6e6ffd88954488571242d7.tar.gz
spack-5959be577fa776e5ec6e6ffd88954488571242d7.tar.bz2
spack-5959be577fa776e5ec6e6ffd88954488571242d7.tar.xz
spack-5959be577fa776e5ec6e6ffd88954488571242d7.zip
python: add 3.13.0 (#46773)
-rw-r--r--var/spack/repos/builtin/packages/gdb/package.py12
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py9
-rw-r--r--var/spack/repos/builtin/packages/python/package.py1
3 files changed, 14 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/gdb/package.py b/var/spack/repos/builtin/packages/gdb/package.py
index c54a0f25c3..4b500ed36a 100644
--- a/var/spack/repos/builtin/packages/gdb/package.py
+++ b/var/spack/repos/builtin/packages/gdb/package.py
@@ -83,10 +83,14 @@ class Gdb(AutotoolsPackage, GNUMirrorPackage):
depends_on("texinfo", type="build")
# Optional dependencies
- depends_on("python", when="+python", type=("build", "link", "run"))
- # gdb@9.2 will segmentation fault if it builds with python@3.9.
- # https://bugzilla.redhat.com/show_bug.cgi?id=1829702
- depends_on("python@:3.8", when="@:9.2+python", type=("build", "link", "run"))
+ with when("+python"), default_args(type=("build", "link", "run")):
+ depends_on("python")
+ # gdb@9.2 will segmentation fault if it builds with python@3.9.
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1829702
+ depends_on("python@:3.8", when="@:9.2")
+ # pyOS_ReadlineTState became private API in cpython commit
+ # d228825e08883fc13f35eb91435f95d32524931c
+ depends_on("python@:3.12", when="@:14.2")
depends_on("xz", when="+xz")
depends_on("zlib-api")
depends_on("zstd", when="@13.1:")
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index 06ee4ac09e..6db89f6721 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -276,10 +276,11 @@ class Petsc(Package, CudaPackage, ROCmPackage):
depends_on("rocthrust")
depends_on("rocprim")
- # Build dependencies
- depends_on("python@2.6:2.8,3.4:3.8", when="@:3.13", type="build")
- depends_on("python@2.6:2.8,3.4:", when="@3.14:3.17", type="build")
- depends_on("python@3.4:", when="@3.18:", type="build")
+ with default_args(type="build"):
+ depends_on("python@2.6:2.8,3.4:")
+ depends_on("python@3.4:", when="@3.18:")
+ depends_on("python@:3.8", when="@:3.13")
+ depends_on("python@:3.12", when="@:3.21") # import xdrlib
# Other dependencies
depends_on("metis@5:~int64+real64", when="@:3.7+metis~int64+double")
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 60f403483e..cba63ece18 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -59,6 +59,7 @@ class Python(Package):
license("0BSD")
+ version("3.13.0", sha256="12445c7b3db3126c41190bfdc1c8239c39c719404e844babbd015a1bc3fafcd4")
version("3.12.5", sha256="38dc4e2c261d49c661196066edbfb70fdb16be4a79cc8220c224dfeb5636d405")
version("3.12.4", sha256="01b3c1c082196f3b33168d344a9c85fb07bfe0e7ecfe77fee4443420d1ce2ad9")
version("3.12.3", sha256="a6b9459f45a6ebbbc1af44f5762623fa355a0c87208ed417628b379d762dddb0")