Pytorch extensions - selecting specific MSVC cl.exe for distutils, setuptools

So…MS broke cuda compiles with their latest update to VS2019 (a break in xutility).

It appears that an older version of VS2019 still works. As luck would have it, I have a community version that is on the broken new version, but a VS2019 professional version that should have a version that still works.

However, I’m finding it unclear how I can set this. It appears that the cl.exe in git-bash is picking up the community directory and I don’t know how to change this to the professional directory.

Has anyone had any experience redirecting what VS setuptools is discovering?