From 9aa77178f33793103653da1c81a73dd6a9e250be Mon Sep 17 00:00:00 2001 From: Elizabeth Fischer Date: Wed, 28 Sep 2016 12:36:25 -0400 Subject: [PATCH] Prohibit Python3 in Python version check. (#1872) --- bin/spack | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/spack b/bin/spack index 17586cc1f6..dcc25c5c83 100755 --- a/bin/spack +++ b/bin/spack @@ -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