[bpo-36146](https://bugs.python.org/issue36146) introduced another regression. In case of missing OpenSSL
libraries or headers, setup.py no longer reported _hashlib and _ssl to
be missing.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue36577
--- /dev/null
+setup.py now correctly reports missing OpenSSL headers and libraries again.
openssl_libs = split_var('OPENSSL_LIBS', '-l')
if not openssl_libs:
# libssl and libcrypto not found
+ self.missing.extend(['_ssl', '_hashlib'])
return None, None
# Find OpenSSL includes
'openssl/ssl.h', self.inc_dirs, openssl_includes
)
if ssl_incs is None:
+ self.missing.extend(['_ssl', '_hashlib'])
return None, None
# OpenSSL 1.0.2 uses Kerberos for KRB5 ciphers