Steve Dower added the comment: I was thinking more like this:
if DISTUTILS_USE_SDK: assume PATH is configured execute os.getenv("CC", "cl.exe") directly else: find VS in the registry execute "cl.exe" etc. The only change here from the current situation is preferring the CC variable in the former case when it is set. When we look up VS in the registry, we know what executable we are going to find and overriding them via the environment is only going to cause issues/vulnerabilities. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26876> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com