[issue26876] Extend MSVCCompiler class to respect environment variables

Steve Dower report at bugs.python.org
Tue May 3 14:50:29 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26876>
_______________________________________


More information about the Python-bugs-list mailing list