[Python-checkins] bpo-43425: Update _osx_support not to use distutils.log (GH-26968)

corona10 webhook-mailer at python.org
Wed Jun 30 20:35:19 EDT 2021


https://github.com/python/cpython/commit/c8979f780e4b7d6db5693cb26a2956cc785abb48
commit: c8979f780e4b7d6db5693cb26a2956cc785abb48
branch: main
author: Dong-hee Na <donghee.na at python.org>
committer: corona10 <donghee.na92 at gmail.com>
date: 2021-07-01T09:35:10+09:00
summary:

bpo-43425: Update _osx_support not to use distutils.log (GH-26968)

files:
M Lib/_osx_support.py

diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py
index b7145ee069fa3..326b36d611631 100644
--- a/Lib/_osx_support.py
+++ b/Lib/_osx_support.py
@@ -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
 



More information about the Python-checkins mailing list