summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-12-19 11:09:37 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2014-12-19 11:09:37 -0800
commitab3bf6190362747b5c7852cc98963beb160951e0 (patch)
treed37f93540c40d7166f290d45d7e0342b11fb1c0d /bin
parent5a3a838fe5a6f08824fe70d40722de9c68b7b749 (diff)
downloadspack-ab3bf6190362747b5c7852cc98963beb160951e0.tar.gz
spack-ab3bf6190362747b5c7852cc98963beb160951e0.tar.bz2
spack-ab3bf6190362747b5c7852cc98963beb160951e0.tar.xz
spack-ab3bf6190362747b5c7852cc98963beb160951e0.zip
Fix for SPACK-50
Bad format string in version check.
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