summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2013-06-02 13:54:46 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2013-06-02 13:54:46 -0700
commit5c761aafabed35b5dde5a4ca61429b33d1951c56 (patch)
treef144f85dbf75f7852b1fc428897576d649e08f8e /lib
parent8f37817ae161d5ab75381a130d6989b5bc4b62e8 (diff)
downloadspack-5c761aafabed35b5dde5a4ca61429b33d1951c56.tar.gz
spack-5c761aafabed35b5dde5a4ca61429b33d1951c56.tar.bz2
spack-5c761aafabed35b5dde5a4ca61429b33d1951c56.tar.xz
spack-5c761aafabed35b5dde5a4ca61429b33d1951c56.zip
Add checks for version 2.7
Diffstat (limited to 'lib')
-rwxr-xr-xlib/spack/env/cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index 9fa1a18573..0245e06531 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -1,5 +1,8 @@
#!/usr/bin/env python
import sys
+if not sys.version_info[:2] >= (2,7):
+ sys.exit("Spack requires Python 2.7. Version was %s." % sys.version_info)
+
import os
import re
import subprocess