mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
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:
committed by
GitHub
parent
6843a3b930
commit
94a4136c8e
+3
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user