How setuptools finds Visual Studio compiler #4091
-
Hello, I have a question about the setuptools package: how does it find the Visual Studio compiler when it compiles a C++ extension on Windows? From the documentation (https://setuptools.pypa.io/en/latest/userguide/ext_modules.html), I understand that the compiler is looked for in the sysconfig variables CC, CXX or CSHARED, or in the environment variables CC, CPP or CXX. Though, when I call Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Setuptools uses https://github.com/pypa/setuptools/blob/main/setuptools/msvc.py |
Beta Was this translation helpful? Give feedback.
Setuptools uses
vswhere
to find modern versions of the toolchain.https://github.com/pypa/setuptools/blob/main/setuptools/msvc.py