Add checks for version 2.7
This commit is contained in:
parent
8f37817ae1
commit
5c761aafab
2 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
||||||
#!/usr/bin/env python2.7
|
#!/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 os
|
||||||
import sys
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
# Find spack's location and its prefix.
|
# Find spack's location and its prefix.
|
||||||
|
|
3
lib/spack/env/cc
vendored
3
lib/spack/env/cc
vendored
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import sys
|
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 os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
Loading…
Reference in a new issue