bpo-36577: setup.py reports missing OpenSSL again (GH-12746) · python/cpython@8abc3f4 (original) (raw)

Original file line number Diff line number Diff line change
@@ -2153,13 +2153,15 @@ def split_var(name, sep):
2153 2153 openssl_libs = split_var('OPENSSL_LIBS', '-l')
2154 2154 if not openssl_libs:
2155 2155 # libssl and libcrypto not found
2156 +self.missing.extend(['_ssl', '_hashlib'])
2156 2157 return None, None
2157 2158
2158 2159 # Find OpenSSL includes
2159 2160 ssl_incs = find_file(
2160 2161 'openssl/ssl.h', self.inc_dirs, openssl_includes
2161 2162 )
2162 2163 if ssl_incs is None:
2164 +self.missing.extend(['_ssl', '_hashlib'])
2163 2165 return None, None
2164 2166
2165 2167 # OpenSSL 1.0.2 uses Kerberos for KRB5 ciphers