summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-09-22 13:04:58 +0200
committerGitHub <noreply@github.com>2023-09-22 13:04:58 +0200
commit716196930aff66253eb3f6339531a06c65f174ac (patch)
treed0bd4593fad5359854eac9000e7284de46c436ad /var
parentf42402129ace15b6495c663320f2eca518d5f9d4 (diff)
downloadspack-716196930aff66253eb3f6339531a06c65f174ac.tar.gz
spack-716196930aff66253eb3f6339531a06c65f174ac.tar.bz2
spack-716196930aff66253eb3f6339531a06c65f174ac.tar.xz
spack-716196930aff66253eb3f6339531a06c65f174ac.zip
Remove distutils dependency in Spack (#40153)
* msvc.py: don't import distutils Introduced in #27021, makes Spack forward incompatible with Python. The module was already deprecated at the time of the PR. * update spack package
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/spack/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/spack/package.py b/var/spack/repos/builtin/packages/spack/package.py
index e656f8656b..ba1e026e81 100644
--- a/var/spack/repos/builtin/packages/spack/package.py
+++ b/var/spack/repos/builtin/packages/spack/package.py
@@ -61,10 +61,15 @@ class Spack(Package):
# This should be read as "require at least curl", not "require curl".
requires("fetchers=curl", when="@:0.16", msg="Curl is required for Spack < 0.17")
- # Python (with spack python -i ipython support)
+ # Python
depends_on("python@2.6.0:2.7,3.5:", type="run")
depends_on("python@2.7.0:2.7,3.5:", type="run", when="@0.18.0:")
depends_on("python@2.7.0:2.7,3.6:", type="run", when="@0.19.0:")
+
+ # Old Spack unfortunately depends on distutils, removed in Python 3.12
+ depends_on("python@:3.12", type="run", when="@0.18:0.20.1")
+
+ # spack python -i ipython support
depends_on("py-ipython", type="run")
# Concretizer