Skip to content

Commit 94a4136

Browse files
bpo-43425: Update _osx_support not to use distutils.log (GH-26968)
(cherry picked from commit c8979f7) Co-authored-by: Dong-hee Na <[email protected]>
1 parent 6843a3b commit 94a4136

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/_osx_support.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,9 @@ def compiler_fixup(compiler_so, cc_args):
428428
break
429429

430430
if sysroot and not os.path.isdir(sysroot):
431-
from distutils import log
432-
log.warn("Compiling with an SDK that doesn't seem to exist: %s",
433-
sysroot)
434-
log.warn("Please check your Xcode installation")
431+
sys.stderr.write(f"Compiling with an SDK that doesn't seem to exist: {sysroot}\n")
432+
sys.stderr.write("Please check your Xcode installation\n")
433+
sys.stderr.flush()
435434

436435
return compiler_so
437436

0 commit comments

Comments
 (0)