python39: backport patch to accomodate system library changes in Big Sur

(cherry picked from commit 9738723b2486cfe9988abbff0c873cce5cba1849)
This commit is contained in:
Martin Weinelt
2021-12-02 18:00:12 -08:00
committed by Jonathan Ringer
parent 05eb41e468
commit 59cd736ec2
2 changed files with 87 additions and 0 deletions
@@ -240,6 +240,9 @@ in with passthru; stdenv.mkDerivation {
] ++ optionals (pythonAtLeast "3.9" && stdenv.isDarwin) [
# Stop checking for TCL/TK in global macOS locations
./3.9/darwin-tcl-tk.patch
# ctypes.util.find_library() now finds macOS 11+ system libraries when built on older macOS systems
# https://github.com/python/cpython/pull/28053
./3.9/bpo-44689-ctypes.util.find_library-now-finds-macOS-1.patch
] ++ optionals (isPy3k && hasDistutilsCxxPatch) [
# Fix for http://bugs.python.org/issue1222585
# Upstream distutils is calling C compiler to compile C++ code, which