summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-11-14 13:11:28 +0100
committerGitHub <noreply@github.com>2022-11-14 13:11:28 +0100
commit3efa4ee26fac9c9a3cd3d6bf077faa20ccf229c6 (patch)
treee72dcf67429f424332a3696d3be7e0ea8c166baf /bin
parentf4c3d980647cd1fad8a9b179eef1461bfad77469 (diff)
downloadspack-3efa4ee26fac9c9a3cd3d6bf077faa20ccf229c6.tar.gz
spack-3efa4ee26fac9c9a3cd3d6bf077faa20ccf229c6.tar.bz2
spack-3efa4ee26fac9c9a3cd3d6bf077faa20ccf229c6.tar.xz
spack-3efa4ee26fac9c9a3cd3d6bf077faa20ccf229c6.zip
Remove support for running with Python 2.7 (#33063)
* Remove CI jobs related to Python 2.7 * Remove Python 2.7 specific code from Spack core * Remove externals for Python 2 only * Remove llnl.util.compat
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/spack b/bin/spack
index 08da29dfd2..d0eb8d8160 100755
--- a/bin/spack
+++ b/bin/spack
@@ -31,13 +31,11 @@ import os
import os.path
import sys
-min_python3 = (3, 5)
+min_python3 = (3, 6)
-if sys.version_info[:2] < (2, 7) or (
- sys.version_info[:2] >= (3, 0) and sys.version_info[:2] < min_python3
-):
+if sys.version_info[:2] < min_python3:
v_info = sys.version_info[:3]
- msg = "Spack requires Python 2.7 or %d.%d or higher " % min_python3
+ msg = "Spack requires Python %d.%d or higher " % min_python3
msg += "You are running spack with Python %d.%d.%d." % v_info
sys.exit(msg)