]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Don't require backports.ssl_match_hostname on Python 2.7.9 and newer 1712/head
authorYegor Yefremov <yegorslists@googlemail.com>
Wed, 4 May 2016 07:26:22 +0000 (09:26 +0200)
committerYegor Yefremov <yegorslists@googlemail.com>
Wed, 4 May 2016 07:36:09 +0000 (09:36 +0200)
As Python 3.2 support was dropped one can check 2.7.x dependency only.

Tornado running on Python 2.7.9+ doesn't need this backported package,
but some Python packages like circus check package dependencies at
runtime and insist on having backports.ssl_match_hostname installed,
though they don't even use this particular feature.

So checking for exact version makes life of package maintainer easier
especially on embedded Linux distributions like Buildroot.

setup.py

index c13eeed033d4bdc3281a12b921666dd7de6142c4..0c24e70a7c23ad191f21685c66ae0cdd1ad4d514 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -129,7 +129,7 @@ if setuptools is not None:
     if sys.version_info < (2, 7):
         # Only needed indirectly, for singledispatch.
         install_requires.append('ordereddict')
-    if sys.version_info < (3, 2):
+    if sys.version_info < (2, 7, 9):
         install_requires.append('backports.ssl_match_hostname')
     if sys.version_info < (3, 4):
         install_requires.append('singledispatch')