]> granicus.if.org Git - python/commitdiff
bpo-36544 : Fix regression introduced in bpo-36146 (GH-12708)
authorxdegaye <xdegaye@gmail.com>
Tue, 9 Apr 2019 15:20:08 +0000 (17:20 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 9 Apr 2019 15:20:08 +0000 (08:20 -0700)
https://bugs.python.org/issue36544

Misc/NEWS.d/next/Build/2019-04-06-18-53-03.bpo-36544.hJr2_a.rst [new file with mode: 0644]
setup.py

diff --git a/Misc/NEWS.d/next/Build/2019-04-06-18-53-03.bpo-36544.hJr2_a.rst b/Misc/NEWS.d/next/Build/2019-04-06-18-53-03.bpo-36544.hJr2_a.rst
new file mode 100644 (file)
index 0000000..71f5c21
--- /dev/null
@@ -0,0 +1 @@
+Fix regression introduced in bpo-36146 refactoring setup.py
index d03596029149aafd7162a9c314d5dae292f72541..85c706cf6610f39f02b7f35e52f67b5b2a9c3d93 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -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).