diff options
author | Elizabeth Fischer <rpf2116@columbia.edu> | 2016-09-28 12:36:25 -0400 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-09-28 12:36:25 -0400 |
commit | 9aa77178f33793103653da1c81a73dd6a9e250be (patch) | |
tree | 17fdb26dede5865e159b167d40332b72cbeb4cad | |
parent | 6df84a794b27d3c16f5d72fc2e11f7f61b109859 (diff) | |
download | spack-9aa77178f33793103653da1c81a73dd6a9e250be.tar.gz spack-9aa77178f33793103653da1c81a73dd6a9e250be.tar.bz2 spack-9aa77178f33793103653da1c81a73dd6a9e250be.tar.xz spack-9aa77178f33793103653da1c81a73dd6a9e250be.zip |
Prohibit Python3 in Python version check. (#1872)
-rwxr-xr-x | bin/spack | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,9 +25,9 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## import sys -if not sys.version_info[:2] >= (2, 6): +if (sys.version_info[0] > 2) or (sys.version_info[:2] < (2, 6)): v_info = sys.version_info[:3] - sys.exit("Spack requires Python 2.6 or higher. " + sys.exit("Spack requires Python 2.6 or 2.7. " "This is Python %d.%d.%d." % v_info) import os |