0001-Disable-SSL-checks.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From 82a3bbc2ac41b5a1b34a53f97459558efe131f14 Mon Sep 17 00:00:00 2001
  2. From: Jan Dohl <polygon@wh2.tu-dresden.de>
  3. Date: Sun, 24 Jun 2018 16:00:54 +0200
  4. Subject: [PATCH] Disable SSL checks
  5. Checking for SSL support in the Python used on the build system is not
  6. relevant, as we need SSL support in the Python on the target system.
  7. Signed-off-by: Jan Dohl <polygon@wh2.tu-dresden.de>
  8. ---
  9. setup.py | 11 -----------
  10. 1 file changed, 11 deletions(-)
  11. diff --git a/setup.py b/setup.py
  12. index 6fbb10a8..1a9220c7 100644
  13. --- a/setup.py
  14. +++ b/setup.py
  15. @@ -15,7 +15,6 @@
  16. import os
  17. import platform
  18. -import ssl
  19. import sys
  20. import warnings
  21. @@ -137,16 +136,6 @@ if setuptools is not None:
  22. python_requires = '>= 2.7, !=3.0.*, !=3.1.*, !=3.2.*, != 3.3.*'
  23. kwargs['python_requires'] = python_requires
  24. -# Verify that the SSL module has all the modern upgrades. Check for several
  25. -# names individually since they were introduced at different versions,
  26. -# although they should all be present by Python 3.4 or 2.7.9.
  27. -if (not hasattr(ssl, 'SSLContext') or
  28. - not hasattr(ssl, 'create_default_context') or
  29. - not hasattr(ssl, 'match_hostname')):
  30. - raise ImportError("Tornado requires an up-to-date SSL module. This means "
  31. - "Python 2.7.9+ or 3.4+ (although some distributions have "
  32. - "backported the necessary changes to older versions).")
  33. -
  34. setup(
  35. name="tornado",
  36. version=version,
  37. --
  38. 2.14.4