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

This commit is contained in:
Dong-hee Na 2021-07-01 09:35:10 +09:00 committed by GitHub
parent 818628c2da
commit c8979f780e
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