mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Print warning when openssl is too old; it's pretty essential at this point.
This commit is contained in:
parent
19e62387b9
commit
eb1cf4e73b
1 changed files with 13 additions and 10 deletions
23
setup.py
23
setup.py
|
@ -592,17 +592,20 @@ class PyBuildExt(build_ext):
|
||||||
if openssl_ver:
|
if openssl_ver:
|
||||||
break
|
break
|
||||||
|
|
||||||
#print 'openssl_ver = 0x%08x' % openssl_ver
|
#print('openssl_ver = 0x%08x' % openssl_ver)
|
||||||
|
|
||||||
if (ssl_incs is not None and
|
if ssl_incs is not None and ssl_libs is not None:
|
||||||
ssl_libs is not None and
|
if openssl_ver >= 0x00907000:
|
||||||
openssl_ver >= 0x00907000):
|
# The _hashlib module wraps optimized implementations
|
||||||
# The _hashlib module wraps optimized implementations
|
# of hash functions from the OpenSSL library.
|
||||||
# of hash functions from the OpenSSL library.
|
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
|
||||||
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
|
include_dirs = ssl_incs,
|
||||||
include_dirs = ssl_incs,
|
library_dirs = ssl_libs,
|
||||||
library_dirs = ssl_libs,
|
libraries = ['ssl', 'crypto']) )
|
||||||
libraries = ['ssl', 'crypto']) )
|
else:
|
||||||
|
print("warning: openssl 0x%08x is too old for _hashlib" %
|
||||||
|
openssl_ver)
|
||||||
|
missing.append('_hashlib')
|
||||||
else:
|
else:
|
||||||
missing.append('_hashlib')
|
missing.append('_hashlib')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue