diff --git a/README.rst b/README.rst index 8837c598de..752b533054 100644 --- a/README.rst +++ b/README.rst @@ -37,6 +37,8 @@ Sopel requires ``backports.ssl_match_hostname`` to be installed. Use ``yum install python-backports.ssl_match_hostname`` to install it, or download and install it manually `from PyPI `_. +Note: Python 2.x is near end of life. Sopel support at that point is TBD. + In the source directory (whether cloned or from the tarball) run ``setup.py install``. You can then run ``sopel`` to configure and start the bot. Alternately, you can just run the ``sopel.py`` file in the source diff --git a/setup.py b/setup.py index bb58ea02ff..4abd58cfaa 100755 --- a/setup.py +++ b/setup.py @@ -23,6 +23,8 @@ # Maybe not the cleanest or best way to do this, but I'm tired of answering # this fucking question, and if you get here you should go RTGDMFM. raise ImportError('Sopel requires Python 2.7+ or 3.3+.') +if sys.version_info.major == 2: + print('Warning: Python 2.x is near end of life. Sopel support at that point is TBD.', file=sys.stderr) def read_reqs(path): diff --git a/sopel/cli/run.py b/sopel/cli/run.py index 7a0a273a1d..867d0c8f4f 100755 --- a/sopel/cli/run.py +++ b/sopel/cli/run.py @@ -17,6 +17,8 @@ if sys.version_info < (2, 7): tools.stderr('Error: Requires Python 2.7 or later. Try python2.7 sopel') sys.exit(1) +if sys.version_info.major == 2: + tools.stderr('Warning: Python 2.x is near end of life. Sopel support at that point is TBD.') if sys.version_info.major == 3 and sys.version_info.minor < 3: tools.stderr('Error: When running on Python 3, Python 3.3 is required.') sys.exit(1)