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

(cherry picked from commit c8979f780e)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
Miss Islington (bot) 2021-06-30 18:20:24 -07:00 committed by GitHub
parent 6843a3b930
commit 94a4136c8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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