diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-07-01 01:20:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 01:20:24 (GMT) |
commit | 94a4136c8eba349dc7eebe561ddaedbd0a89eb91 (patch) | |
tree | 4f89258b8e6bea3fca076cc4c5ebb78da5b80542 | |
parent | 6843a3b9300eb80c2bf5dac7dd363dae9e6f000d (diff) | |
download | cpython-94a4136c8eba349dc7eebe561ddaedbd0a89eb91.zip cpython-94a4136c8eba349dc7eebe561ddaedbd0a89eb91.tar.gz cpython-94a4136c8eba349dc7eebe561ddaedbd0a89eb91.tar.bz2 |
bpo-43425: Update _osx_support not to use distutils.log (GH-26968)
(cherry picked from commit c8979f780e4b7d6db5693cb26a2956cc785abb48)
Co-authored-by: Dong-hee Na <donghee.na@python.org>
-rw-r--r-- | Lib/_osx_support.py | 7 |
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 |