diff options
author | Guido van Rossum <guido@python.org> | 2007-08-17 17:14:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-17 17:14:17 (GMT) |
commit | eb1cf4e73beca52f8bc3b5ba9d5cef3632470a5b (patch) | |
tree | cbd1454193b2d3a932ed0c2ebf7c76823311da60 | |
parent | 19e62387b9bd70fb4f3212db55872454f903229e (diff) | |
download | cpython-eb1cf4e73beca52f8bc3b5ba9d5cef3632470a5b.zip cpython-eb1cf4e73beca52f8bc3b5ba9d5cef3632470a5b.tar.gz cpython-eb1cf4e73beca52f8bc3b5ba9d5cef3632470a5b.tar.bz2 |
Print warning when openssl is too old; it's pretty essential at this point.
-rw-r--r-- | setup.py | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -592,17 +592,20 @@ class PyBuildExt(build_ext): if openssl_ver: break - #print 'openssl_ver = 0x%08x' % openssl_ver - - if (ssl_incs is not None and - ssl_libs is not None and - openssl_ver >= 0x00907000): - # The _hashlib module wraps optimized implementations - # of hash functions from the OpenSSL library. - exts.append( Extension('_hashlib', ['_hashopenssl.c'], - include_dirs = ssl_incs, - library_dirs = ssl_libs, - libraries = ['ssl', 'crypto']) ) + #print('openssl_ver = 0x%08x' % openssl_ver) + + if ssl_incs is not None and ssl_libs is not None: + if openssl_ver >= 0x00907000: + # The _hashlib module wraps optimized implementations + # of hash functions from the OpenSSL library. + exts.append( Extension('_hashlib', ['_hashopenssl.c'], + include_dirs = ssl_incs, + library_dirs = ssl_libs, + libraries = ['ssl', 'crypto']) ) + else: + print("warning: openssl 0x%08x is too old for _hashlib" % + openssl_ver) + missing.append('_hashlib') else: missing.append('_hashlib') |