mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
396 B
Python
17 lines
396 B
Python
5 years ago
|
import sys
|
||
|
import warnings
|
||
|
import textwrap
|
||
|
|
||
|
|
||
|
msg = textwrap.dedent("""
|
||
|
Encountered a version of Setuptools that no longer supports
|
||
|
this version of Python. Please head to
|
||
|
https://bit.ly/setuptools-py2-sunset for support.
|
||
|
""")
|
||
|
|
||
|
pre = "Setuptools no longer works on Python 2\n"
|
||
|
|
||
|
if sys.version_info < (3,):
|
||
|
warnings.warn(pre + "*" * 60 + msg + "*" * 60)
|
||
|
raise SystemExit(32)
|