Spack works with Python 3

- Update version guard in spack script to allow python 3
- Update min required version in the docs
This commit is contained in:
Todd Gamblin
2017-03-07 09:31:15 -08:00
parent 3f21f2b088
commit a8bcc23fe7
4 changed files with 6 additions and 5 deletions

View File

@@ -27,9 +27,9 @@
from __future__ import print_function
import sys
if (sys.version_info[0] > 2) or (sys.version_info[:2] < (2, 6)):
if sys.version_info[:2] < (2, 6):
v_info = sys.version_info[:3]
sys.exit("Spack requires Python 2.6 or 2.7. "
sys.exit("Spack requires Python 2.6 or higher."
"This is Python %d.%d.%d." % v_info)
import os