8000 bpo-43425: Update _osx_support not to use distutils.log · python/cpython@3231014 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3231014

Browse files
committed
bpo-43425: Update _osx_support not to use distutils.log
1 parent ca2009d commit 3231014

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)
0