0001-Don-t-require-backports.ssl_match_hostname-on-Python.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 785fe675d5602e51a559b06861d543c7d37a380c Mon Sep 17 00:00:00 2001
  2. From: Yegor Yefremov <yegorslists@googlemail.com>
  3. Date: Wed, 4 May 2016 09:26:22 +0200
  4. Subject: [PATCH] Don't require backports.ssl_match_hostname on Python 2.7.9
  5. and newer
  6. As Python 3.2 support was dropped one can check 2.7.x dependency only.
  7. Tornado running on Python 2.7.9+ doesn't need this backported package,
  8. but some Python packages like circus check package dependencies at
  9. runtime and insist on having backports.ssl_match_hostname installed,
  10. though they don't even use this particular feature.
  11. So checking for exact version makes life of package maintainer easier
  12. especially on embedded Linux distributions like Buildroot.
  13. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
  14. ---
  15. setup.py | 2 +-
  16. 1 file changed, 1 insertion(+), 1 deletion(-)
  17. diff --git a/setup.py b/setup.py
  18. index c13eeed..0c24e70 100644
  19. --- a/setup.py
  20. +++ b/setup.py
  21. @@ -129,7 +129,7 @@ if setuptools is not None:
  22. if sys.version_info < (2, 7):
  23. # Only needed indirectly, for singledispatch.
  24. install_requires.append('ordereddict')
  25. - if sys.version_info < (3, 2):
  26. + if sys.version_info < (2, 7, 9):
  27. install_requires.append('backports.ssl_match_hostname')
  28. if sys.version_info < (3, 4):
  29. install_requires.append('singledispatch')
  30. --
  31. 2.8.1