When the configure script is launched, it runs through find_default_compiler since cl.exe can be found in PATH. However, the subprocess launched through subprocess.Popen do not have environment variables set or is not able to use PATH, so the function needs to have the environment variables passed to it somehow.
When the configure script is launched, it runs through
find_default_compiler
sincecl.exe
can be found in PATH. However, the subprocess launched throughsubprocess.Popen
do not have environment variables set or is not able to use PATH, so the function needs to have the environment variables passed to it somehow.