summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/spack3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/spack b/bin/spack
index 9fbb65f349..b345a5079d 100755
--- a/bin/spack
+++ b/bin/spack
@@ -25,7 +25,8 @@
##############################################################################
import sys
if not sys.version_info[:2] >= (2,6):
- sys.exit("Spack requires Python 2.6. Version was %s." % sys.version_info)
+ v_info = sys.version_info[:3]
+ sys.exit("Spack requires Python 2.6 or higher. This is Python %d.%d.%d." % v_info)
import os