diff options
Diffstat (limited to 'lib/spack/env/cc')
-rwxr-xr-x | lib/spack/env/cc | 3 |
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 |