Python 2 warning message

This commit is contained in:
James R. Barlow
2015-12-21 09:38:38 -08:00
parent 49cd6cc619
commit e510f89792
+5
View File
@@ -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.