From e510f89792d3fbe4def6832f314ec6263a2d09c1 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 21 Dec 2015 09:38:38 -0800 Subject: [PATCH] Python 2 warning message --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 7859fcd8..9df78fcf 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # © 2015 James R. Barlow: github.com/jbarlow83 +from __future__ import print_function, unicode_literals from setuptools import setup from subprocess import Popen, STDOUT, check_output, CalledProcessError from string import Template @@ -9,6 +10,10 @@ import re import sys +if sys.version_info.major < 3: + print("Python 2 is not supported") + sys.exit(1) + missing_program = ''' The program '{program}' could not be executed or was not found on your system PATH.