Fix for SPACK-50
Bad format string in version check.
This commit is contained in:
parent
5a3a838fe5
commit
ab3bf61903
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@
|
||||||
##############################################################################
|
##############################################################################
|
||||||
import sys
|
import sys
|
||||||
if not sys.version_info[:2] >= (2,6):
|
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
|
import os
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue