summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-07-01 00:35:10 (GMT)
committerGitHub <noreply@github.com>2021-07-01 00:35:10 (GMT)
commitc8979f780e4b7d6db5693cb26a2956cc785abb48 (patch)
tree094b993c04fbfec174f9b14e956b50bc46c20cad
parent818628c2da99ba0376313971816d472c65c9a9fc (diff)
downloadcpython-c8979f780e4b7d6db5693cb26a2956cc785abb48.zip
cpython-c8979f780e4b7d6db5693cb26a2956cc785abb48.tar.gz
cpython-c8979f780e4b7d6db5693cb26a2956cc785abb48.tar.bz2
bpo-43425: Update _osx_support not to use distutils.log (GH-26968)
-rw-r--r--Lib/_osx_support.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py
index b7145ee..326b36d 100644
--- a/Lib/_osx_support.py
+++ b/Lib/_osx_support.py
@@ -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