How to choose different msvc build tools when building with cpp_extension?

I have used the cpp extensions to build some open source packages and for the most part everything seems to work fine. However, I have come across some compatibility issue which should be resolved with an older compiler version (I think…).
Anyway I have to versions of msvc build tools installed:

but when running python setup.py install it always uses the latest version. Is there an argument I can pass to CUDAExtension or BuildExtension in order to set the correct version?

For further information, I have already posted a stackoverflow question with some more details about the package I want to build and the setup.py code.