bpo-36544 : Fix regression introduced in bpo-36146 (GH-12708)

https://bugs.python.org/issue36544
This commit is contained in:
xdegaye 2019-04-09 17:20:08 +02:00 committed by Miss Islington (bot)
parent 56065d4c8a
commit 2ee077f795
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
Fix regression introduced in bpo-36146 refactoring setup.py

View file

@ -1642,6 +1642,7 @@ class PyBuildExt(build_ext):
self.detect_crypt()
self.detect_socket()
self.detect_openssl_hashlib()
self.detect_hash_builtins()
self.detect_dbm_gdbm()
self.detect_sqlite()
self.detect_platform_specific_exts()
@ -2184,6 +2185,7 @@ class PyBuildExt(build_ext):
library_dirs=openssl_libdirs,
libraries=openssl_libs))
def detect_hash_builtins(self):
# We always compile these even when OpenSSL is available (issue #14693).
# It's harmless and the object code is tiny (40-50 KiB per module,
# only loaded when actually used).