From 38e03974a262cce28b45a9b612d2b175d84106f8 Mon Sep 17 00:00:00 2001 From: ysitu Date: Fri, 6 Jun 2014 14:48:30 -0400 Subject: Add detection of Python 2.7+ upon install and import --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 733dca2f..049effa5 100644 --- a/setup.py +++ b/setup.py @@ -19,8 +19,8 @@ if sys.argv[-1] == 'setup.py': print("To install, run 'python setup.py install'") print() -if sys.version_info[:2] < (2, 6): - print("NetworkX requires Python version 2.6 or later (%d.%d detected)." % +if sys.version_info[:2] < (2, 7): + print("NetworkX requires Python 2.7 or later (%d.%d detected)." % sys.version_info[:2]) sys.exit(-1) -- cgit v1.2.1