ad10a44011a9fa808c2d12230fd2894eae55c8a7
[packages.git] / lang / python / patches / 120-force-internal-modules-for-hashlib.patch
1 ---
2  setup.py |   10 ++++++----
3  1 file changed, 6 insertions(+), 4 deletions(-)
4
5 --- a/setup.py
6 +++ b/setup.py
7 @@ -704,8 +704,7 @@ class PyBuildExt(build_ext):
8  
9          min_openssl_ver = 0x00907000
10          have_any_openssl = ssl_incs is not None and ssl_libs is not None
11 -        have_usable_openssl = (have_any_openssl and
12 -                               openssl_ver >= min_openssl_ver)
13 +        have_usable_openssl = False
14  
15          if have_any_openssl:
16              if have_usable_openssl:
17 @@ -730,7 +729,7 @@ class PyBuildExt(build_ext):
18                              depends = ['md5.h']) )
19  
20          min_sha2_openssl_ver = 0x00908000
21 -        if COMPILED_WITH_PYDEBUG or openssl_ver < min_sha2_openssl_ver:
22 +        if True:
23              # OpenSSL doesn't do these until 0.9.8 so we'll bring our own hash
24              exts.append( Extension('_sha256', ['sha256module.c']) )
25              exts.append( Extension('_sha512', ['sha512module.c']) )