]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43425: Update _osx_support not to use distutils.log (GH-26968)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 1 Jul 2021 01:20:24 +0000 (18:20 -0700)
committerGitHub <noreply@github.com>
Thu, 1 Jul 2021 01:20:24 +0000 (18:20 -0700)
(cherry picked from commit c8979f780e4b7d6db5693cb26a2956cc785abb48)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
Lib/_osx_support.py

index b7145ee069fa32c5fd5da9d8abec0014ef045332..326b36d611631410b300801e33d3eeb26af2314f 100644 (file)
@@ -428,10 +428,9 @@ def compiler_fixup(compiler_so, cc_args):
             break
 
     if sysroot and not os.path.isdir(sysroot):
-        from distutils import log
-        log.warn("Compiling with an SDK that doesn't seem to exist: %s",
-                sysroot)
-        log.warn("Please check your Xcode installation")
+        sys.stderr.write(f"Compiling with an SDK that doesn't seem to exist: {sysroot}\n")
+        sys.stderr.write("Please check your Xcode installation\n")
+        sys.stderr.flush()
 
     return compiler_so